Skip to content

Commit

Permalink
Test across Laravel versions
Browse files Browse the repository at this point in the history
  • Loading branch information
roelofr committed Mar 7, 2023
1 parent 1b7973d commit 8e4c966
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ on:

jobs:
test:
name: Test on PHP ${{ matrix.php }}
name: Test on PHP ${{ matrix.php }} x Laravel ${{ matrix.laravel }}
runs-on: ubuntu-latest
continue-on-error: ${{ matrix.experimental == true }}

Expand All @@ -20,11 +20,23 @@ jobs:
- '8.2'
- 'nightly'

laravel:
- '8.0'
- '9.0'
- '10.0'

include:
- php: '8.2'
laravel: '9.0'
stable: true
- php: 'nightly'
experimental: true
- laravel: '8.0'
testbench: '6.0'
- laravel: '9.0'
testbench: '7.0'
- laravel: '10.0'
testbench: '8.0'

steps:
- name: Checkout
Expand All @@ -47,6 +59,11 @@ jobs:
- name: Add GitHub Actions printer for PHPUnit
run: composer require --dev --no-update mheap/phpunit-github-actions-printer

- name: Configure to use Laravel ${{ matrix.laravel }} with Testbench ${{ matrix.testbench }}
run: |
composer require --no-update laravel/laravel:^${{ matrix.laravel }}
composer require --no-update --dev orchestra/testbench:^${{ matrix.testbench }}
- name: Configure local Laravel Nova dummy package
run: composer config repositories.0 path ./tests/Fixtures/nova

Expand Down

0 comments on commit 8e4c966

Please sign in to comment.