Run unit tests as well as integration tests

This commit is contained in:
Dane Everitt 2020-06-28 15:31:06 -07:00
parent 6b1b478cb9
commit d6b765ed16
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -18,7 +18,7 @@ jobs:
fail-fast: true fail-fast: true
matrix: matrix:
php: [7.3, 7.4] php: [7.3, 7.4]
name: Integration (PHP ${{ matrix.php }}) name: PHP ${{ matrix.php }}
steps: steps:
- name: checkout - name: checkout
uses: actions/checkout@v2 uses: actions/checkout@v2
@ -44,7 +44,12 @@ jobs:
run: cp .env.ci .env run: cp .env.ci .env
- name: install dependencies - name: install dependencies
run: composer install --prefer-dist --no-interaction --no-progress run: composer install --prefer-dist --no-interaction --no-progress
- name: execute tests - name: execute unit tests
run: vendor/bin/phpunit --bootstrap bootstrap/app.php tests/Unit
env:
DB_CONNECTION: testing
TESTING_DB_HOST: UNIT_NO_DB
- name: execute integration tests
run: vendor/bin/phpunit tests/Integration run: vendor/bin/phpunit tests/Integration
env: env:
TESTING_DB_PORT: ${{ job.services.mysql.ports[3306] }} TESTING_DB_PORT: ${{ job.services.mysql.ports[3306] }}