Skip to content

Commit

Permalink
Add PHP 8.2 to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
norkunas committed Jan 18, 2023
1 parent e95db9e commit a61bf5f
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 5 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
php-version: 8.1
coverage: none
- name: Install dependencies
run: composer update --prefer-dist --no-progress
- name: Run linter
Expand All @@ -32,7 +33,8 @@ jobs:
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.0
php-version: 8.2
coverage: none
- name: Install dependencies
run: composer update --prefer-dist --no-progress
- name: Run types tests with PHPStan
Expand All @@ -45,14 +47,15 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
php-versions: ['7.4', '8.0', '8.1']
php-versions: ['7.4', '8.0', '8.1', '8.2']
name: integration-tests (PHP ${{ matrix.php-versions }})
steps:
- uses: actions/checkout@v1
- name: Install PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php-versions }}
coverage: none
- name: Validate composer.json and composer.lock
run: composer validate
- name: Install dependencies
Expand Down
3 changes: 2 additions & 1 deletion bors.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ status = [
'phpstan-tests',
'integration-tests (PHP 7.4)',
'integration-tests (PHP 8.0)',
'integration-tests (PHP 8.1)'
'integration-tests (PHP 8.1)',
'integration-tests (PHP 8.2)'
]
# 1 hour timeout
timeout-sec = 3600
5 changes: 4 additions & 1 deletion tests/Endpoints/IndexTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ public function testGetTasks(): void
$results = array_unique($allIndexUids);
$expected = [$this->index->getUid(), 'other-index'];

$this->assertSame(sort($results), sort($expected));
sort($results);
sort($expected);

$this->assertSame($results, $expected);
}

public function testWaitForTaskDefault(): void
Expand Down

0 comments on commit a61bf5f

Please sign in to comment.