Skip to content

Commit 318f83e

Browse files
committed
Update GitHub Actions for Laravel 12
1 parent 2a40cbe commit 318f83e

File tree

1 file changed

+14
-7
lines changed

1 file changed

+14
-7
lines changed

.github/workflows/run-tests.yml

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,31 @@
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.1, 8.2, 8.3 ]
12-
laravel: [ 10.*, 11.* ]
13-
dependency-version: [ prefer-stable ]
14+
php: [8.1, 8.2, 8.3]
15+
laravel: ['10.*', '11.*', '12.*']
16+
dependency-version: [prefer-stable]
1417
exclude:
1518
- laravel: 11.*
1619
php: 8.1
20+
- laravel: 12.*
21+
php: 8.1
1722
include:
1823
- laravel: 10.*
1924
testbench: 8.*
2025
- laravel: 11.*
2126
testbench: 9.*
27+
- laravel: 12.*
28+
testbench: 10.*
2229

2330
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.dependency-version }}
2431

@@ -45,9 +52,9 @@ jobs:
4552
- name: Execute tests
4653
run: vendor/bin/phpunit --coverage-clover=coverage.xml
4754

48-
- if: github.event_name == 'push'
55+
- if: "github.event_name == 'push'"
4956
name: Run Codacy Coverage Reporter
5057
uses: codacy/codacy-coverage-reporter-action@master
5158
with:
52-
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
53-
coverage-reports: coverage.xml
59+
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
60+
coverage-reports: coverage.xml

0 commit comments

Comments
 (0)