diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2195ac2665..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 @@ -530,9 +542,8 @@ jobs: run: | $postgreSqlSvc = Get-Service "postgresql*" Set-Service $postgreSqlSvc.Name -StartupType manual - $postgreSqlSvc.Start() try { - (Get-Service "postgresql*").Start() + $postgreSqlSvc.Start() } catch { $_ | select * } @@ -543,5 +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 + 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 diff --git a/tests/functional/extension_acp_test.php b/tests/functional/extension_acp_test.php index 94ed7a35b7..2f26c53ce5 100644 --- a/tests/functional/extension_acp_test.php +++ b/tests/functional/extension_acp_test.php @@ -43,8 +43,6 @@ class phpbb_functional_extension_acp_test extends phpbb_functional_test_case $this->purge_cache(); - $this->get_db(); - // Clear the phpbb_ext table $this->db->sql_query('DELETE FROM phpbb_ext');