Skip to content

Commit

Permalink
Fix docker compose syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
dpellenwood committed Sep 3, 2024
1 parent ace8129 commit 2c7f7d2
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@ jobs:
run: |
echo "${{ secrets.COMPOSER_ENV }}" > .env
- name: Create auth.json
uses: jsdaniell/[email protected]
with:
name: 'auth.json'
json: ${{ secrets.COMPOSER_AUTH_JSON }}

- name: Create local config
run: |
php -r "file_exists( 'local-config.php' ) || copy( 'local-config-sample.php', 'local-config.php' );"
Expand Down Expand Up @@ -72,11 +78,11 @@ jobs:
working-directory: dev/docker

- name: Start project containers
run: docker-compose --project-name=${{ env.PROJECT_ID }} up -d --force-recreate
run: docker compose --project-name=${{ env.PROJECT_ID }} up -d --force-recreate
working-directory: dev/docker

- name: Install composer dependencies
run: docker-compose --project-name=${{ env.PROJECT_ID }} exec -T php-fpm composer install --optimize-autoloader -d /application/www
run: docker compose --project-name=${{ env.PROJECT_ID }} exec -T php-fpm composer install --optimize-autoloader -d /application/www
working-directory: dev/docker

- name: Set up node
Expand Down Expand Up @@ -108,19 +114,19 @@ jobs:
chmod -R 777 ${{ github.workspace }}/cache/
- name: Run unit tests
run: docker-compose --project-name=${{ env.PROJECT_ID }} exec -T php-tests php /application/www/vendor/bin/codecept --config "/application/www/dev/tests" run unit
run: docker compose --project-name=${{ env.PROJECT_ID }} exec -T php-tests php /application/www/vendor/bin/codecept --config "/application/www/dev/tests" run unit
working-directory: dev/docker

- name: Run integration tests
run: docker-compose --project-name=${{ env.PROJECT_ID }} exec -T php-tests php /application/www/vendor/bin/codecept --config "/application/www/dev/tests" run integration
run: docker compose --project-name=${{ env.PROJECT_ID }} exec -T php-tests php /application/www/vendor/bin/codecept --config "/application/www/dev/tests" run integration
working-directory: dev/docker

- name: Run acceptance tests
run: docker-compose --project-name=${{ env.PROJECT_ID }} exec -T php-tests php /application/www/vendor/bin/codecept --config "/application/www/dev/tests" run acceptance
run: docker compose --project-name=${{ env.PROJECT_ID }} exec -T php-tests php /application/www/vendor/bin/codecept --config "/application/www/dev/tests" run acceptance
working-directory: dev/docker

- name: Run webdriver tests
run: docker-compose --project-name=${{ env.PROJECT_ID }} exec -T php-tests php /application/www/vendor/bin/codecept -vvv --config "/application/www/dev/tests" run webdriver
run: docker compose --project-name=${{ env.PROJECT_ID }} exec -T php-tests php /application/www/vendor/bin/codecept -vvv --config "/application/www/dev/tests" run webdriver
working-directory: dev/docker

- uses: actions/upload-artifact@v2
Expand Down

0 comments on commit 2c7f7d2

Please sign in to comment.