Skip to content

Commit 935b7b5

Browse files
committed
Fix: github env
1 parent af6df68 commit 935b7b5

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
run: mysql --host 127.0.0.1 --port ${{ job.services.mysql.ports['3306'] }} -u${{ env.DB_USERNAME }} -p${{ env.DB_PASSWORD }} -e "SHOW DATABASES"
4040
- name: Get composer cache directory
4141
id: composer-cache
42-
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
42+
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
4343
- name: Cache composer dependencies
4444
uses: actions/cache@v3
4545
with:
@@ -63,7 +63,13 @@ jobs:
6363
- name: Run integration tests with phpunit
6464
run: vendor/bin/phpunit tests/Integration/
6565
- name: Running the system tests
66-
run: vendor/bin/phpunit tests/System/;
66+
run: |
67+
export PHPLIST_DATABASE_NAME=${{ env.DB_DATABASE }}
68+
export PHPLIST_DATABASE_USER=${{ env.DB_USERNAME }}
69+
export PHPLIST_DATABASE_PASSWORD=${{ env.DB_PASSWORD }}
70+
export PHPLIST_DATABASE_PORT=${{ job.services.mysql.ports['3306'] }}
71+
export PHPLIST_DATABASE_HOST=127.0.0.1
72+
vendor/bin/phpunit tests/System/
6773
- name: Running static analysis
6874
run: vendor/bin/phpstan analyse -l 5 src/ tests/;
6975
- name: Running PHPMD

0 commit comments

Comments
 (0)