Skip to content

Commit 644860d

Browse files
committed
Clean up CI workflow for L13 support
1 parent e839868 commit 644860d

1 file changed

Lines changed: 19 additions & 36 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 19 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,49 @@
11
name: run-tests
22

3-
on:
4-
- push
5-
- pull_request
3+
on: [push, pull_request]
64

75
jobs:
86
test:
9-
runs-on: ${{ matrix.os }}
7+
runs-on: ubuntu-latest
108

119
strategy:
12-
fail-fast: false
10+
fail-fast: true
1311
matrix:
14-
os: [ubuntu-latest]
15-
php: [8.5, 8.4, 8.3, 8.2, 8.1, 8.0]
16-
laravel: ['9.*', '10.*', '11.*', '12.*', '13.*']
17-
dependency-version: [prefer-lowest, prefer-stable]
12+
php: [8.5, 8.4, 8.3, 8.2]
13+
laravel: ['13.*', '12.*', '11.*', '10.*']
14+
stability: [prefer-stable]
1815
include:
19-
- laravel: 10.*
20-
testbench: 8.*
21-
- laravel: 9.*
22-
testbench: 7.*
23-
- laravel: 11.*
24-
testbench: 9.*
25-
- laravel: 12.*
26-
testbench: 10.*
2716
- laravel: 13.*
2817
testbench: 11.*
29-
exclude:
30-
- laravel: 10.*
31-
php: 8.0
32-
- laravel: 11.*
33-
php: 8.0
34-
- laravel: 11.*
35-
php: 8.1
3618
- laravel: 12.*
37-
php: 8.0
38-
- laravel: 12.*
39-
php: 8.1
40-
- laravel: 13.*
41-
php: 8.0
42-
- laravel: 13.*
43-
php: 8.1
19+
testbench: 10.*
20+
- laravel: 11.*
21+
testbench: 9.*
22+
- laravel: 10.*
23+
testbench: 8.*
24+
exclude:
4425
- laravel: 13.*
4526
php: 8.2
27+
- laravel: 10.*
28+
php: 8.5
4629

47-
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }} - ${{ matrix.os }}
30+
name: P${ matrix.php } - L${ matrix.laravel } - ${ matrix.stability }
4831

4932
steps:
5033
- name: Checkout code
51-
uses: actions/checkout@v2
34+
uses: actions/checkout@v4
5235

5336
- name: Setup PHP
5437
uses: shivammathur/setup-php@v2
5538
with:
56-
php-version: ${{ matrix.php }}
39+
php-version: ${ matrix.php }
5740
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
5841
coverage: none
5942

6043
- name: Install dependencies
6144
run: |
62-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
63-
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction --no-suggest
45+
composer require "laravel/framework:${ matrix.laravel }" "orchestra/testbench:${ matrix.testbench }" --no-interaction --no-update
46+
composer update --${ matrix.stability } --prefer-dist --no-interaction
6447
6548
- name: Execute tests
6649
run: vendor/bin/phpunit

0 commit comments

Comments
 (0)