Skip to content

Commit db57d9b

Browse files
committed
Update GitHub Actions for Laravel 11
1 parent 626122b commit db57d9b

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.github/workflows/run-tests.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,26 @@
11
name: Tests
22

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

57
jobs:
68
test:
79
runs-on: ubuntu-latest
10+
811
strategy:
912
fail-fast: true
1013
matrix:
11-
php: [ 8.0, 8.1 ]
12-
laravel: [ 8.*, 9.*, 10.* ]
13-
dependency-version: [ prefer-stable ]
14+
php: [8.0, 8.1, '8.2']
15+
laravel: ['8.*', '9.*', '10.*', '11.*']
16+
dependency-version: [prefer-stable]
1417
exclude:
1518
- laravel: 10.*
1619
php: 8.0
20+
- laravel: 11.*
21+
php: 8.0
22+
- laravel: 11.*
23+
php: 8.1
1724
include:
1825
- laravel: 7.*
1926
php: 7.2
@@ -30,6 +37,9 @@ jobs:
3037
testbench: 7.*
3138
- laravel: 10.*
3239
testbench: 8.*
40+
- laravel: 11.*
41+
php: '8.2'
42+
testbench: 9.*
3343

3444
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
3545

@@ -56,9 +66,9 @@ jobs:
5666
- name: Execute tests
5767
run: vendor/bin/phpunit --coverage-clover=coverage.xml
5868

59-
- if: github.event_name == 'push'
69+
- if: "github.event_name == 'push'"
6070
name: Run Codacy Coverage Reporter
6171
uses: codacy/codacy-coverage-reporter-action@master
6272
with:
63-
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
64-
coverage-reports: coverage.xml
73+
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
74+
coverage-reports: coverage.xml

0 commit comments

Comments
 (0)