-
Notifications
You must be signed in to change notification settings - Fork 162
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bcb3227
commit 15d5abe
Showing
1 changed file
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,6 +17,7 @@ jobs: | |
- "8.1" | ||
- "8.2" | ||
- "8.3" | ||
- "8.4" | ||
steps: | ||
- name: "Checkout" | ||
uses: "actions/checkout@v4" | ||
|
@@ -36,10 +37,14 @@ 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" | ||
|
@@ -48,6 +53,10 @@ jobs: | |
if: ${{ matrix.php-version == '8.2' || matrix.php-version == '8.3' }} | ||
run: "make -j -O test" | ||
|
||
- name: "Run tests (PHP 8.4)" | ||
if: ${{ matrix.php-version == '8.4' }} | ||
run: "make -j -O test-phpunit test-examples" | ||
|
||
- name: "Send code coverage" | ||
if: ${{ matrix.php-version == '8.3' }} | ||
uses: codecov/[email protected] |