Skip to content

Commit

Permalink
Fix test workflow to use docker compose v2, as v1 now retired
Browse files Browse the repository at this point in the history
Apparently "docker-compose" was deprecated over 6 months ago and is
starting to be phased out in favor of "docker compose".  Without this,
test runners are getting:

  home/runner/work/_temp/0af6641a-337b-4651-8ca4-fef3529091af.sh: line 1:
  docker-compose: command not found

See https://github.com/orgs/community/discussions/116610 for details
  • Loading branch information
smemsh committed Aug 14, 2024
1 parent e27d91a commit a1351c2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,9 @@ jobs:
GITHUB_USER: ${{ github.actor }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONTAINER: ${{ matrix.container }}
run: if [[ !( "${CONTAINER}" =~ osx-* ) ]] ; then docker-compose build "test-${CONTAINER}" ; fi
run: if [[ !( "${CONTAINER}" =~ osx-* ) ]] ; then docker compose build "test-${CONTAINER}" ; fi
- name: Test ${{ matrix.name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
CONTAINER: ${{ matrix.container }}
run: if [[ !( "${CONTAINER}" =~ osx-* ) ]]; then docker-compose run "test-${CONTAINER}" ; else bash test/scripts/test_osx.sh ; fi
run: if [[ !( "${CONTAINER}" =~ osx-* ) ]]; then docker compose run "test-${CONTAINER}" ; else bash test/scripts/test_osx.sh ; fi

0 comments on commit a1351c2

Please sign in to comment.