From 05ef74878cb35e81f8b938b96ae0fc4a1895b362 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Baillet?= Date: Mon, 20 Jan 2025 16:39:28 +0100 Subject: [PATCH] try improve ci --- .github/workflows/github-actions.yml | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) 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