From d6b765ed16ae7dccc9670da680016817935029de Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sun, 28 Jun 2020 15:31:06 -0700 Subject: [PATCH] Run unit tests as well as integration tests --- .github/workflows/tests.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 5d99550d6..4b22f0219 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -18,7 +18,7 @@ jobs: fail-fast: true matrix: php: [7.3, 7.4] - name: Integration (PHP ${{ matrix.php }}) + name: PHP ${{ matrix.php }} steps: - name: checkout uses: actions/checkout@v2 @@ -44,7 +44,12 @@ jobs: run: cp .env.ci .env - name: install dependencies 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 env: TESTING_DB_PORT: ${{ job.services.mysql.ports[3306] }}