Merge pull request #6325 from rxu/ticket/16909

[ticket/16909] Add PHP 8.2 builds to test matrix
This commit is contained in:
Marc Alexander 2021-11-14 10:11:22 +01:00
commit e956629735
No known key found for this signature in database
GPG key ID: 50E0D2423696F995
2 changed files with 16 additions and 3 deletions

View file

@ -126,6 +126,8 @@ jobs:
db: "mysql:5.7" db: "mysql:5.7"
- php: '8.1' - php: '8.1'
db: "mysql:5.7" db: "mysql:5.7"
- php: '8.2'
db: "mysql:5.7"
name: PHP ${{ matrix.php }} - ${{ matrix.db_alias != '' && matrix.db_alias || matrix.db }} name: PHP ${{ matrix.php }} - ${{ matrix.db_alias != '' && matrix.db_alias || matrix.db }}
@ -253,6 +255,10 @@ jobs:
db: "postgres:12" db: "postgres:12"
- php: '8.0' - php: '8.0'
db: "postgres:13" db: "postgres:13"
- php: '8.1'
db: "postgres:14"
- php: '8.2'
db: "postgres:14"
name: PHP ${{ matrix.php }} - ${{ matrix.db }} name: PHP ${{ matrix.php }} - ${{ matrix.db }}
@ -442,7 +448,7 @@ jobs:
# Test with IIS & PostgreSQL on Windows # Test with IIS & PostgreSQL on Windows
windows-tests: windows-tests:
runs-on: windows-2016 runs-on: windows-latest
strategy: strategy:
matrix: matrix:
include: include:
@ -455,6 +461,9 @@ jobs:
- php: '8.1' - php: '8.1'
db: "postgres" db: "postgres"
type: 'unit' type: 'unit'
- php: '8.2'
db: "postgres"
type: 'unit'
- php: '7.4' - php: '7.4'
db: "postgres" db: "postgres"
type: 'functional' type: 'functional'
@ -464,6 +473,9 @@ jobs:
- php: '8.1' - php: '8.1'
db: "postgres" db: "postgres"
type: 'functional' type: 'functional'
- php: '8.2'
db: "postgres"
type: 'functional'
name: Windows - PHP ${{ matrix.php }} - ${{ matrix.db }} - ${{ matrix.type }} name: Windows - PHP ${{ matrix.php }} - ${{ matrix.db }} - ${{ matrix.type }}
@ -549,6 +561,7 @@ jobs:
} }
[System.Environment]::SetEnvironmentVariable('PATH',$Env:PATH+";${env:PGBIN}") [System.Environment]::SetEnvironmentVariable('PATH',$Env:PATH+";${env:PGBIN}")
$env:PGPASSWORD = 'root' $env:PGPASSWORD = 'root'
psql -c hot_standby=on
psql -c 'DROP DATABASE IF EXISTS phpbb_tests;' -U postgres psql -c 'DROP DATABASE IF EXISTS phpbb_tests;' -U postgres
psql -c 'create database phpbb_tests;' -U postgres psql -c 'create database phpbb_tests;' -U postgres
Set-MpPreference -ExclusionPath "${env:PGDATA}" # Exclude PGDATA directory from Windows Defender Set-MpPreference -ExclusionPath "${env:PGDATA}" # Exclude PGDATA directory from Windows Defender

View file

@ -101,7 +101,7 @@ class phpbb_functional_auth_test extends phpbb_functional_test_case
$this->assertStringContainsString($this->lang('AUTH_PROVIDER_OAUTH_SERVICE_GOOGLE'), $crawler->filter('h3')->text()); $this->assertStringContainsString($this->lang('AUTH_PROVIDER_OAUTH_SERVICE_GOOGLE'), $crawler->filter('h3')->text());
$form = $crawler->selectButton($this->lang('UCP_AUTH_LINK_LINK'))->form(); $form = $crawler->selectButton($this->lang('UCP_AUTH_LINK_LINK'))->form();
$crawler = self::submit($form); $crawler = self::submit($form);
$this->assertStringContainsString('Google Accounts', $crawler->filter('title')->text()); $this->assertStringContainsString('accounts.google.com', $crawler->filter('base')->attr('href'));
// Test OAuth linking for registration // Test OAuth linking for registration
$this->logout(); $this->logout();
@ -111,7 +111,7 @@ class phpbb_functional_auth_test extends phpbb_functional_test_case
$crawler = self::submit($form); $crawler = self::submit($form);
$this->assertContainsLang('AUTH_PROVIDER_OAUTH_SERVICE_GOOGLE', $crawler->filter('a[class="button2"]')->text()); $this->assertContainsLang('AUTH_PROVIDER_OAUTH_SERVICE_GOOGLE', $crawler->filter('a[class="button2"]')->text());
$crawler = self::request('GET', 'ucp.php?mode=login&login=external&oauth_service=google'); $crawler = self::request('GET', 'ucp.php?mode=login&login=external&oauth_service=google');
$this->assertStringContainsString('Google Accounts', $crawler->filter('title')->text()); $this->assertStringContainsString('accounts.google.com', $crawler->filter('base')->attr('href'));
// Restore default auth method, but unset random keys first // Restore default auth method, but unset random keys first
// Restart webclient as we were redirected to external site before // Restart webclient as we were redirected to external site before