Skip to content

Commit

Permalink
make workflow easier to maintain
Browse files Browse the repository at this point in the history
  • Loading branch information
jrmajor committed Nov 23, 2024
1 parent dbb6ef5 commit 97a1937
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,18 @@ on:
push:
branches-ignore: [master]

env:
PHP_LOWEST: '8.2'
PHP_LATEST: '8.4'

jobs:
tests:
name: Tests / PHP ${{ matrix.php }}, L ${{ matrix.laravel }}, ${{ matrix.stability }}
name: Tests / ${{ matrix.php }} PHP , L ${{ matrix.laravel }}, ${{ matrix.stability }}

runs-on: ubuntu-latest
strategy:
matrix:
php: ['8.2', '8.3', '8.4']
php: ['lowest', 'latest']
laravel: ['11.*']
stability: [prefer-lowest, prefer-stable]

Expand Down Expand Up @@ -43,16 +47,16 @@ jobs:
run: vendor/bin/phpunit

types:
name: Types / PHP ${{ matrix.php }}, L ${{ matrix.laravel }}, ${{ matrix.stability }}
name: Types / ${{ matrix.php }} PHP, L ${{ matrix.laravel }}, ${{ matrix.stability }}

runs-on: ubuntu-latest
strategy:
matrix:
include:
- php: '8.2'
- php: 'lowest'
laravel: '11.*'
stability: prefer-lowest
- php: '8.4'
- php: 'latest'
laravel: '11.*'
stability: prefer-stable

Expand Down Expand Up @@ -102,7 +106,7 @@ jobs:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.2'
php-version: ${{ env.PHP_LOWEST }}
coverage: none

- name: Get Composer cache directory path
Expand Down

0 comments on commit 97a1937

Please sign in to comment.