Fix: Change email signature (#875) #2679
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Composer test | |
on: | |
push: | |
branches: | |
- 'main' | |
pull_request: | |
jobs: | |
test: | |
strategy: | |
fail-fast: false | |
matrix: | |
databaseImageName: [ 'mariadb:10.5.9', 'mariadb:10.5.12' ] | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@master | |
- name: Install dependencies | |
uses: php-actions/composer@v6 | |
with: | |
php_version: 8.2 | |
command: install | |
args: --ignore-platform-req=ext-pcntl | |
- name: Copy example .env file | |
run: cp .env.example .env | |
- 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 | |
- 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 | |
- name: Setup - Other things | |
run: | | |
docker compose exec -T api php artisan key:generate | |
- name: 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 | |
- 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 | |
- 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 |