Skip to content

Commit ddade6b

Browse files
committed
Update GitHub Actions for Laravel 12
1 parent d4c3ef9 commit ddade6b

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/tests.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Run tests
22

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

57
jobs:
68
php-tests:
@@ -9,20 +11,21 @@ jobs:
911
strategy:
1012
fail-fast: false
1113
matrix:
12-
php: [ '8.1', '8.2', '8.3' ]
13-
laravel: [ '10.*', '11.*' ]
14-
stability: [ prefer-stable ]
14+
php: ['8.1', '8.2', '8.3']
15+
laravel: ['10.*', '11.*', '12.*']
16+
stability: [prefer-stable]
1517
exclude:
1618
- laravel: 11.*
1719
php: '8.1'
20+
- laravel: 12.*
21+
php: '8.1'
1822

1923
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }}
2024

2125
steps:
2226
- name: Checkout code
2327
uses: actions/checkout@v4
2428
with:
25-
# Fetch 10 commits or Scrutinizer will throw
2629
fetch-depth: 10
2730

2831
- name: Setup PHP
@@ -53,7 +56,6 @@ jobs:
5356

5457
- name: Upload Scrutinizer coverage
5558
uses: sudo-bot/action-scrutinizer@latest
56-
# Do not run this step on forked versions of the main repository (example: contributor forks)
57-
if: matrix.laravel == '10.*' && github.repository == 'swisnl/laravel-javascript-data-response'
59+
if: "matrix.laravel == '10.*' && github.repository == 'swisnl/laravel-javascript-data-response'"
5860
with:
59-
cli-args: "--format=php-clover coverage.clover --revision=${{ github.event.pull_request.head.sha || github.sha }}"
61+
cli-args: --format=php-clover coverage.clover --revision=${{ github.event.pull_request.head.sha || github.sha }}

0 commit comments

Comments
 (0)