Skip to content

Commit e275818

Browse files
committed
Adjust PHP tests with correct PHP and Laravel matrix
1 parent beff446 commit e275818

File tree

1 file changed

+24
-7
lines changed

1 file changed

+24
-7
lines changed

.github/workflows/test.yml

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,28 @@ on: [push, pull_request]
55
jobs:
66
build:
77
runs-on: ubuntu-latest
8-
9-
strategy:
10-
matrix:
11-
php-version: ['8.0', '8.1', '8.2']
12-
composer-flags: ["--prefer-lowest", ""]
8+
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
9+
10+
strategy:
11+
fail-fast: true
12+
matrix:
13+
php: [ 8.2, 8.1, 8.0]
14+
laravel: [ 10.*, 9.*, 8.*]
15+
composer-flags: ["--prefer-lowest"]
16+
include:
17+
- laravel: 10.*
18+
testbench: 8.*
19+
- laravel: 9.*
20+
testbench: 7.*
21+
- laravel: 8.*
22+
testbench: 6.*
23+
exclude:
24+
- laravel: 10.*
25+
php: 8.0
26+
- laravel: 10.*
27+
php: 7.4
28+
- laravel: 9.*
29+
php: 7.4
1330

1431
steps:
1532
- name: Checkout
@@ -23,8 +40,8 @@ jobs:
2340

2441
- name: Install dependencies
2542
run: |
26-
composer self-update
27-
composer update ${{ matrix.composer-flags }} --no-interaction --prefer-source
43+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
44+
composer update --prefer-stable --prefer-dist --no-interaction --no-suggest
2845
2946
- name: Run tests
3047
run: ./vendor/bin/phpunit --coverage-text --coverage-clover=coverage.clover

0 commit comments

Comments
 (0)