-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace setup-php action version to semver
Update setup php actions & Require previous composer version for php7.1 Bump phpunit version to 8.5.23 https://stackoverflow.com/a/70974793/4175566 Disable php coverage for actions Add composer global update to tests workflow Bump phpunit 8 min version Remove php 8.2 tests
- Loading branch information
Showing
4 changed files
with
16 additions
and
21 deletions.
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
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
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 |
---|---|---|
@@ -1,31 +1,30 @@ | ||
name: Tests | ||
|
||
on: [push, pull_request] | ||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
test: | ||
|
||
strategy: | ||
fail-fast: false | ||
matrix: | ||
php: [7.1, 7.2, 7.3, 7.4, 8.0, 8.1] | ||
composer-dependency: [prefer-stable, prefer-lowest] | ||
|
||
php: [ "7.1", "7.2", "7.3", "7.4", "8.0", "8.1" ] | ||
composer-dependency: [ prefer-stable, prefer-lowest ] | ||
name: "PHP ${{ matrix.php }} - ${{ matrix.composer-dependency }}" | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- uses: actions/checkout@v2 | ||
|
||
- name: Setup PHP | ||
uses: nanasess/setup-php@master | ||
uses: shivammathur/setup-php@v2 | ||
with: | ||
php-version: ${{ matrix.php }} | ||
tools: composer:${{ matrix.php == '7.1' && 'v2.2' || 'v2' }} | ||
coverage: none | ||
|
||
- name: Install dependencies | ||
run: composer update --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist --${{ matrix.composer-dependency }} | ||
run: | | ||
composer global update | ||
composer update --no-interaction --no-scripts --no-suggest --no-progress --prefer-dist --${{ matrix.composer-dependency }} | ||
- name: Execute tests | ||
run: vendor/bin/phpunit |
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