Skip to content

Commit

Permalink
[TASK] Add PHP 8.2 to test matrix (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
lolli42 committed Aug 3, 2022
1 parent df89d2d commit d3bc027
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-20.04
strategy:
matrix:
php: ["7.2", "7.3", "7.4", "8.0", "8.1"]
php: ["7.2", "7.3", "7.4", "8.0", "8.1", "8.2"]
steps:
- name: Checkout repository
uses: actions/checkout@v2
Expand All @@ -30,10 +30,16 @@ jobs:
restore-keys: ${{ runner.os }}-php-${{ matrix.php }}-composer-

- name: Install dependencies
if: ${{ matrix.php <= '8.1' }}
run: composer install --prefer-dist --no-progress --no-suggest --optimize-autoloader

- name: Install dependencies PHP 8.2
# @todo: Needed until prophecy (req by phpunit) allows PHP 8.2, https://github.com/phpspec/prophecy/issues/556
if: ${{ matrix.php > '8.1' }}
run: composer install --prefer-dist --no-progress --no-suggest --optimize-autoloader --ignore-platform-req=php+

- name: Run cgl
if: ${{ matrix.php != '8.1' }}
if: ${{ matrix.php < '8.1' }}
run: composer cs

- name: Run unit tests
Expand Down

0 comments on commit d3bc027

Please sign in to comment.