Skip to content

Commit 9b36d9c

Browse files
committed
Fix: github pipeline
1 parent 984621d commit 9b36d9c

File tree

1 file changed

+9
-3
lines changed

1 file changed

+9
-3
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ on: [push, pull_request]
33
jobs:
44
main:
55
name: phpList Base Dist on PHP ${{ matrix.php-versions }}, with dist ${{ matrix.dependencies }} [Build, Test]
6-
runs-on: ubuntu-20.04
6+
runs-on: ubuntu-22.04
77
env:
88
DB_DATABASE: phplist
99
DB_USERNAME: root
1010
DB_PASSWORD: phplist
11-
BROADCAST_DRIVER: log
11+
BROADCAST_DRIVER: log
1212
services:
1313
mysql:
1414
image: mysql:5.7
@@ -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)