mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-08 04:18:52 +00:00
Merge branch '3.3.x'
This commit is contained in:
commit
b8c3b6e0b1
2 changed files with 20 additions and 6 deletions
24
.github/workflows/tests.yml
vendored
24
.github/workflows/tests.yml
vendored
|
@ -448,12 +448,24 @@ jobs:
|
||||||
include:
|
include:
|
||||||
- php: '7.4'
|
- php: '7.4'
|
||||||
db: "postgres"
|
db: "postgres"
|
||||||
|
type: 'unit'
|
||||||
- php: '8.0'
|
- php: '8.0'
|
||||||
db: "postgres"
|
db: "postgres"
|
||||||
|
type: 'unit'
|
||||||
- php: '8.1'
|
- php: '8.1'
|
||||||
db: "postgres"
|
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:
|
steps:
|
||||||
- name: Prepare git for Windows
|
- name: Prepare git for Windows
|
||||||
|
@ -534,9 +546,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
$postgreSqlSvc = Get-Service "postgresql*"
|
$postgreSqlSvc = Get-Service "postgresql*"
|
||||||
Set-Service $postgreSqlSvc.Name -StartupType manual
|
Set-Service $postgreSqlSvc.Name -StartupType manual
|
||||||
$postgreSqlSvc.Start()
|
|
||||||
try {
|
try {
|
||||||
(Get-Service "postgresql*").Start()
|
$postgreSqlSvc.Start()
|
||||||
} catch {
|
} catch {
|
||||||
$_ | select *
|
$_ | select *
|
||||||
}
|
}
|
||||||
|
@ -547,5 +558,10 @@ jobs:
|
||||||
Set-MpPreference -ExclusionPath "${env:PGDATA}" # Exclude PGDATA directory from Windows Defender
|
Set-MpPreference -ExclusionPath "${env:PGDATA}" # Exclude PGDATA directory from Windows Defender
|
||||||
Set-MpPreference -DisableRealtimeMonitoring $true
|
Set-MpPreference -DisableRealtimeMonitoring $true
|
||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
|
if: ${{ matrix.type == 'unit' }}
|
||||||
run: |
|
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
|
||||||
|
|
|
@ -43,8 +43,6 @@ class phpbb_functional_extension_acp_test extends phpbb_functional_test_case
|
||||||
|
|
||||||
$this->purge_cache();
|
$this->purge_cache();
|
||||||
|
|
||||||
$this->get_db();
|
|
||||||
|
|
||||||
// Clear the phpbb_ext table
|
// Clear the phpbb_ext table
|
||||||
$this->db->sql_query('DELETE FROM phpbb_ext');
|
$this->db->sql_query('DELETE FROM phpbb_ext');
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue