Skip to content

Commit

Permalink
Update composer packages with ignore platform reqs
Browse files Browse the repository at this point in the history
  • Loading branch information
markuspoerschke committed Jul 11, 2024
1 parent 6d899f6 commit 5cb182f
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,22 +37,22 @@ jobs:
path: "${{ steps.determine-composer-cache-directory.outputs.directory }}"
key: "php-${{ matrix.php-version }}-composer-cache"

- name: "Install lowest available packages for PHP 7.4 and 8.0"
- name: "Install lowest available packages for PHP 7.4, 8.0 and 8.1"
if: ${{ matrix.php-version == '7.4' || matrix.php-version == '8.0' || matrix.php-version == '8.1' }}
run: "composer up --prefer-lowest"

- name: "Install packages for PHP 8.4"
if: ${{ matrix.php-version == '8.4' }}
run: "composer install --ignore-platform-reqs"

- name: "Run tests (old PHP versions)"
if: ${{ matrix.php-version == '7.4' || matrix.php-version == '8.0' || matrix.php-version == '8.1' }}
run: "PHPUNIT_FLAGS=--no-coverage make test-phpunit test-psalm test-examples"

- name: "Run tests"
if: ${{ matrix.php-version == '8.2' || matrix.php-version == '8.3' }}
if: ${{ matrix.php-version == '8.2' || matrix.php-version == '8.3' || matrix.php-version == '8.4' }}
run: "make -j -O test"

- name: "Run tests (next PHP version)"
if: ${{ matrix.php-version == '8.4' }}
run: "COMPOSER_IGNORE_PLATFORM_REQ=1 make -j -O test"

- name: "Send code coverage"
if: ${{ matrix.php-version == '8.3' }}
uses: codecov/[email protected]

0 comments on commit 5cb182f

Please sign in to comment.