Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 10 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Run tests

on: [ push, pull_request ]
on:
- push
- pull_request

jobs:
php-tests:
Expand All @@ -9,12 +11,14 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [ '8.1', '8.2', '8.3' ]
laravel: [ '10.*', '11.*' ]
stability: [ prefer-stable ]
php: ['8.1', '8.2', '8.3']
laravel: ['10.*', '11.*', '12.*']
stability: [prefer-stable]
exclude:
- laravel: 11.*
php: '8.1'
- laravel: 12.*
php: '8.1'

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

Expand Down Expand Up @@ -54,6 +58,6 @@ jobs:
- name: Upload Scrutinizer coverage
uses: sudo-bot/action-scrutinizer@latest
# Do not run this step on forked versions of the main repository (example: contributor forks)
if: matrix.laravel == '10.*' && github.repository == 'swisnl/laravel-javascript-data-response'
if: "matrix.laravel == '10.*' && github.repository == 'swisnl/laravel-javascript-data-response'"
with:
cli-args: "--format=php-clover coverage.clover --revision=${{ github.event.pull_request.head.sha || github.sha }}"
cli-args: --format=php-clover coverage.clover --revision=${{ github.event.pull_request.head.sha || github.sha }}
10 changes: 6 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
"require": {
"php": "^8.1",
"ext-json": "*",
"laravel/framework": "^10.0|^11.0"
"laravel/framework": "^10.0|^11.0|^12.0"
},
"require-dev": {
"laravel/pint": "^1.15",
"orchestra/testbench": "^8.0|^9.0",
"phpunit/phpunit": "^10.0"
"orchestra/testbench": "^8.0|^9.0|^10.0",
"phpunit/phpunit": "^10.0|^11.5.3"
},
"autoload": {
"psr-4": {
Expand All @@ -51,5 +51,7 @@
"Swis\\Laravel\\JavaScriptData\\ServiceProvider"
]
}
}
},
"minimum-stability": "dev",
"prefer-stable": true
}