-
-
Notifications
You must be signed in to change notification settings - Fork 2
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
581408f
commit 7c98641
Showing
1 changed file
with
10 additions
and
24 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,36 +12,22 @@ jobs: | |
max-parallel: 4 | ||
matrix: | ||
operatingSystem: [ubuntu-latest, windows-latest] | ||
phpVersion: ['7.4', '8.0', '8.1'] | ||
phpVersion: ['8.1', '8.2', '8.3'] | ||
fail-fast: false | ||
|
||
runs-on: ${{ matrix.operatingSystem }} | ||
name: ${{ matrix.operatingSystem }} / PHP ${{ matrix.phpVersion }} | ||
env: | ||
extensions: curl, fileinfo, openssl, zip | ||
key: winter-packager-v1 | ||
steps: | ||
- name: Cancel previous incomplete runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout changes | ||
uses: actions/checkout@v2 | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }} | ||
|
||
- name: Setup extension cache | ||
id: extcache | ||
uses: shivammathur/cache-extensions@v1 | ||
with: | ||
php-version: ${{ matrix.phpVersion }} | ||
extensions: ${{ env.extensions }} | ||
key: ${{ env.key }} | ||
|
||
- name: Cache extensions | ||
uses: actions/cache@v2 | ||
with: | ||
path: ${{ steps.extcache.outputs.dir }} | ||
key: ${{ steps.extcache.outputs.key }} | ||
restore-keys: ${{ steps.extcache.outputs.key }} | ||
steps: | ||
- name: Checkout changes | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install PHP | ||
uses: shivammathur/setup-php@v2 | ||
|
@@ -55,7 +41,7 @@ jobs: | |
run: echo "::set-output name=dir::$(composer config cache-files-dir)" | ||
|
||
- name: Cache dependencies | ||
uses: actions/cache@v2 | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ steps.composercache.outputs.dir }} | ||
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.json') }} | ||
|
@@ -65,7 +51,7 @@ jobs: | |
run: composer install --no-interaction --no-progress --no-scripts | ||
|
||
- name: Setup problem matchers for PHPUnit | ||
if: matrix.phpVersion == '7.4' | ||
if: matrix.phpVersion == '8.3' | ||
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json" | ||
|
||
- name: Run tests | ||
|