Skip to content

Commit d6b765e

Browse files
committed
Run unit tests as well as integration tests
1 parent 6b1b478 commit d6b765e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/tests.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
fail-fast: true
1919
matrix:
2020
php: [7.3, 7.4]
21-
name: Integration (PHP ${{ matrix.php }})
21+
name: PHP ${{ matrix.php }}
2222
steps:
2323
- name: checkout
2424
uses: actions/checkout@v2
@@ -44,7 +44,12 @@ jobs:
4444
run: cp .env.ci .env
4545
- name: install dependencies
4646
run: composer install --prefer-dist --no-interaction --no-progress
47-
- name: execute tests
47+
- name: execute unit tests
48+
run: vendor/bin/phpunit --bootstrap bootstrap/app.php tests/Unit
49+
env:
50+
DB_CONNECTION: testing
51+
TESTING_DB_HOST: UNIT_NO_DB
52+
- name: execute integration tests
4853
run: vendor/bin/phpunit tests/Integration
4954
env:
5055
TESTING_DB_PORT: ${{ job.services.mysql.ports[3306] }}

0 commit comments

Comments
 (0)