Skip to content

Commit

Permalink
fix: compose is a docker plugin now (#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
m90 committed Aug 6, 2024
1 parent 2d27928 commit 75d9064
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/composer.test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,26 +32,26 @@ jobs:
- name: Run docker-compose setup
env:
DATABASE_IMAGE_NAME: ${{ matrix.databaseImageName }}
run: docker-compose -f docker-compose.yml -f docker-compose.integration.yml up -d
run: docker compose -f docker-compose.yml -f docker-compose.integration.yml up -d

- name: Setup - Keep trying to install the DBs (try for 30 seconds)
uses: nick-invision/retry@v3.0.0
with:
max_attempts: 30
retry_wait_seconds: 1
timeout_seconds: 30
command: docker-compose exec -T api php artisan migrate:fresh
command: docker compose exec -T api php artisan migrate:fresh

- name: Setup - Other things
run: |
docker-compose exec -T api php artisan key:generate
docker compose exec -T api php artisan key:generate
- name: PHPUnit
run: docker-compose exec -e APP_ENV=testing -T api vendor/bin/phpunit
run: docker compose exec -e APP_ENV=testing -T api vendor/bin/phpunit
- name: Psalm
run: docker-compose exec -T api vendor/bin/psalm
run: docker compose exec -T api vendor/bin/psalm

- name: Run elasticsearch index deletion integration test
run: docker-compose exec -e RUN_PHPUNIT_INTEGRATION_TEST=1 -e ELASTICSEARCH_HOST=elasticsearch.svc:9200 -T api vendor/bin/phpunit tests/Jobs/Integration/ElasticSearchIndexDeleteTest.php
run: docker compose exec -e RUN_PHPUNIT_INTEGRATION_TEST=1 -e ELASTICSEARCH_HOST=elasticsearch.svc:9200 -T api vendor/bin/phpunit tests/Jobs/Integration/ElasticSearchIndexDeleteTest.php
- name: Run blazegraph integration test
run: docker-compose exec -e RUN_PHPUNIT_INTEGRATION_TEST=1 -T api vendor/bin/phpunit tests/Jobs/Integration/QueryserviceNamespaceJobTest.php
run: docker compose exec -e RUN_PHPUNIT_INTEGRATION_TEST=1 -T api vendor/bin/phpunit tests/Jobs/Integration/QueryserviceNamespaceJobTest.php

0 comments on commit 75d9064

Please sign in to comment.