Skip to content

Commit 9907692

Browse files
Enhance CI
1 parent 18e0b7c commit 9907692

File tree

1 file changed

+16
-17
lines changed

1 file changed

+16
-17
lines changed

.github/workflows/run-tests.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,25 +8,24 @@ on:
88

99
jobs:
1010
test:
11-
runs-on: ${{ matrix.os }}
11+
runs-on: ubuntu-latest
1212
strategy:
1313
fail-fast: true
1414
matrix:
15-
os: [ubuntu-latest]
16-
php: [8.3, 8.4]
17-
laravel: [10.*]
18-
stability: [prefer-stable]
1915
include:
20-
- laravel: 10.*
21-
testbench: 8.*
22-
carbon: ^2.63
23-
- laravel: 11.*
24-
testbench: 9.*
25-
carbon: ^3.0
26-
- laravel: 12.*
27-
testbench: 10.*
28-
carbon: ^3.0
29-
16+
- php: 8.3
17+
env:
18+
LARAVEL: 11.*
19+
TESTBENCH: 9.*
20+
- php: 8.4
21+
env:
22+
LARAVEL: 11.*
23+
TESTBENCH: 9.*
24+
- php: 8.4
25+
env:
26+
LARAVEL: 12.*
27+
TESTBENCH: 10.*
28+
env: ${{ matrix.env }}
3029
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
3130

3231
steps:
@@ -47,8 +46,8 @@ jobs:
4746
4847
- name: Install dependencies
4948
run: |
50-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update
51-
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
49+
composer require "laravel/framework:${LARAVEL}" "orchestra/testbench:${TESTBENCH}" --no-interaction --no-update
50+
composer update --prefer-stable --prefer-dist --no-interaction
5251
5352
- name: List Installed Dependencies
5453
run: composer show -D

0 commit comments

Comments
 (0)