Skip to content

Commit

Permalink
Fix Ci for PHP 8.0
Browse files Browse the repository at this point in the history
The composer.lock doesn't work for PHP 8.0, so rather than use the lock
file, do a composer update.
  • Loading branch information
akrabat committed Jun 24, 2024
1 parent bc7727e commit a676961
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.0, 8.1, 8.2]
php: [8.0, 8.1, 8.2, 8.3]
experimental: [false]
include:
- php: 8.2
Expand All @@ -26,7 +26,12 @@ jobs:
php-version: ${{ matrix.php }}
coverage: xdebug

- name: Install dependencies with Composer
- name: Install dependencies with Composer (PHP 8.0)
if: ${{ matrix.php == 8.0 }}
run: rm composer.lock && composer update

- name: Install dependencies with Composer (PHP 8.1+)
if: ${{ matrix.php >= 8.1 }}
uses: ramsey/composer-install@v2

- name: Coding standards
Expand Down

0 comments on commit a676961

Please sign in to comment.