diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 0f516a4..1a77ecf 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -63,6 +63,7 @@ jobs: tests: env: HOST_API: http://api.openchurch.local/api + REDIS_URL: redis://redis:6379 runs-on: ubuntu-latest # Docs: https://docs.github.com/en/actions/using-containerized-services services: @@ -121,11 +122,9 @@ jobs: env: DATABASE_URL: mysql://root:symfony@127.0.0.1:${{ job.services.mysql.ports['3306'] }}/openchurch_test SYNCHRO_SECRET_KEY: secret - REDIS_URL: redis://redis:6379 - name: Execute tests (Unit and Feature tests) via PHPUnit run: vendor/bin/phpunit env: - REDIS_URL: redis://redis:6379 DATABASE_URL: mysql://root:symfony@127.0.0.1:${{ job.services.mysql.ports['3306'] }}/openchurch_test - name: phpstan if: always() @@ -136,19 +135,14 @@ jobs: - name: lint:container if: always() run: php bin/console lint:container - env: - REDIS_URL: redis://redis:6379 - name: lint:yaml if: always() run: php bin/console lint:yaml config src - env: - REDIS_URL: redis://redis:6379 - name: doctrine:schema:validate if: always() run: php bin/console doctrine:schema:validate -vvv env: DATABASE_URL: mysql://root:symfony@127.0.0.1:${{ job.services.mysql.ports['3306'] }}/openchurch_test - REDIS_URL: redis://redis:6379 - name: Archive logs as artifacts if: always() uses: actions/upload-artifact@v4