Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
mechelon committed Mar 13, 2024
1 parent 5018ac8 commit 1eacb86
Showing 1 changed file with 22 additions and 61 deletions.
83 changes: 22 additions & 61 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,73 +12,32 @@ jobs:
runs-on: ubuntu-latest

strategy:
fail-fast: false
fail-fast: true
matrix:
php:
- '8.3'
- '8.2'
- '8.1'
- '8.0'
laravel:
- '11.*'
- '10.*'
- '9.*'
- '8.*'
dependency-version:
- 'prefer-stable'

exclude:
- laravel: '10.*'
php: '8.0'
- laravel: '11.*'
php: ['8.0', '8.1']
php: [8.0, 8.1, 8.2, 8.3]
laravel: [11.*, 10.*, 9.*, 8.*]
dependency-version: [prefer-lowest, prefer-stable]
os: [ubuntu-latest]
include:
- laravel: '11.*'
php: '8.3'
testbench: '9.*'
- laravel: '11.*'
php: '8.2'
testbench: '9.*'
- laravel: '10.*'
php: '8.3'
testbench: '8.*'
- laravel: '10.*'
php: '8.2'
testbench: '8.*'
- laravel: '10.*'
php: '8.1'
testbench: '8.*'
- laravel: '9.*'
php: '8.3'
testbench: '7.*'
- laravel: '9.*'
php: '8.2'
testbench: '7.*'
- laravel: '9.*'
php: '8.1'
testbench: '7.*'
- laravel: '9.*'
php: '8.0'
testbench: '7.*'
- laravel: '8.*'
php: '8.3'
testbench: '6.*'
- laravel: '8.*'
php: '8.2'
testbench: '6.*'
- laravel: '8.*'
php: '8.1'
testbench: '6.*'
- laravel: '8.*'
php: '8.0'
testbench: '6.*'

- laravel: 11.*
testbench: 9.*
- laravel: 10.*
testbench: 8.*
- laravel: 9.*
testbench: 7.*
- laravel: 8.*
testbench: 6.*
exclude:
- laravel: 11.*
php: [8.1, 8.0]
- laravel: 10.*
php: 8.0

name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Setup PHP
uses: shivammathur/setup-php@v2
Expand All @@ -88,7 +47,9 @@ jobs:
coverage: none

- name: Install dependencies
run: composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
run: |
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Execute tests
run: vendor/bin/phpunit

0 comments on commit 1eacb86

Please sign in to comment.