Skip to content

Commit 0c68670

Browse files
Enhance CI
1 parent e1ab286 commit 0c68670

File tree

1 file changed

+20
-15
lines changed

1 file changed

+20
-15
lines changed

.github/workflows/run-tests.yml

Lines changed: 20 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,35 @@ name: run-tests
22

33
on:
44
push:
5-
branches: [main]
5+
branches: [main, v2]
66
pull_request:
7-
branches: [main]
7+
branches: [main, v2]
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.2]
17-
laravel: [10.*]
18-
stability: [prefer-stable]
1915
include:
20-
- laravel: 10.*
21-
testbench: 8.*
22-
carbon: ^2.63
23-
24-
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
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 }}
29+
name: P${{ matrix.php }} - L${{ matrix.env.LARAVEL }} - TB${{ matrix.env.TESTBENCH }}
2530

2631
steps:
2732
- name: Checkout code
28-
uses: actions/checkout@v3
33+
uses: actions/checkout@v4
2934

3035
- name: Setup PHP
3136
uses: shivammathur/setup-php@v2
@@ -41,8 +46,8 @@ jobs:
4146
4247
- name: Install dependencies
4348
run: |
44-
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" "nesbot/carbon:${{ matrix.carbon }}" --no-interaction --no-update
45-
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
4651
4752
- name: List Installed Dependencies
4853
run: composer show -D

0 commit comments

Comments
 (0)