From 6af8872ef3d057fd081507501e2c45ecac2395dc Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Sun, 17 Oct 2021 10:19:34 +0200 Subject: [PATCH] [ticket/16889] Create separate runs for unit and functional tests PHPBB3-16889 --- .github/workflows/tests.yml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f9589a1b5f..c12570098c 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -448,12 +448,24 @@ jobs: include: - php: '7.4' db: "postgres" + type: 'unit' - php: '8.0' db: "postgres" + type: 'unit' - php: '8.1' db: "postgres" + type: 'unit' + - php: '7.4' + db: "postgres" + type: 'functional' + - php: '8.0' + db: "postgres" + type: 'functional' + - php: '8.1' + db: "postgres" + type: 'functional' - name: Windows - PHP ${{ matrix.php }} - ${{ matrix.db }} + name: Windows - PHP ${{ matrix.php }} - ${{ matrix.db }} - ${{ matrix.type }} steps: - name: Prepare git for Windows @@ -542,6 +554,10 @@ jobs: Set-MpPreference -ExclusionPath "${env:PGDATA}" # Exclude PGDATA directory from Windows Defender Set-MpPreference -DisableRealtimeMonitoring $true - name: Run unit tests + if: ${{ matrix.type == 'unit' }} run: | phpBB/vendor/bin/phpunit --configuration .github/phpunit-psql-windows-github.xml --verbose --stop-on-error --exclude-group functional + - name: Run unit tests + if: ${{ matrix.type == 'functional' }} + run: | phpBB/vendor/bin/phpunit --configuration .github/phpunit-psql-windows-github.xml --verbose --stop-on-error --group functional