From 3c64808f480d7063d366afedfc445e0eda9ff489 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joachim=20L=C3=B8vgaard?= Date: Wed, 4 Dec 2019 08:49:08 +0100 Subject: [PATCH] Set environment variables i separate step --- .github/workflows/build.yaml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 3a599f2..2350f1b 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -14,6 +14,10 @@ jobs: operating-system: [ubuntu-latest] php-versions: ['7.2', '7.3'] steps: + - name: Set environment variables + run: | + echo "::set-env name=APP_ENV::test" + echo "::set-env name=DATABASE_URL::mysql://root:root@127.0.0.1/setono_sylius_redirect?serverVersion=5.7" - name: Checkout uses: actions/checkout@v1 - name: Setup PHP, with composer and extensions @@ -41,11 +45,5 @@ jobs: (cd tests/Application && bin/console doctrine:schema:create -vvv) (cd tests/Application && bin/console assets:install public -vvv) (cd tests/Application && bin/console cache:warmup -vvv) - env: - APP_ENV: test - DATABASE_URL: mysql://root:root@127.0.0.1/setono_sylius_analytics?serverVersion=5.7 - name: Run behat run: vendor/bin/behat --strict -vvv --no-interaction || vendor/bin/behat --strict -vvv --no-interaction --rerun - env: - APP_ENV: test - DATABASE_URL: mysql://root:root@127.0.0.1/setono_sylius_analytics?serverVersion=5.7