Skip to content
Open
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
49 changes: 15 additions & 34 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: test
on:
pull_request:
branches:
- 'main'
- 'development'
- "main"
- "development"

jobs:
test:
Expand All @@ -13,29 +13,11 @@ jobs:
strategy:
fail-fast: false
matrix:
php: [8.2, 8.3, 8.4, 8.5]
laravel: [10.*, 11.*, 12.*]
include:
- laravel: 10.*
testbench: ^8.0
phpunit: ^10.0
- laravel: 11.*
testbench: ^9.0
phpunit: ^10.5
- laravel: 12.*
testbench: ^10.0
phpunit: ^11.0
exclude:
# Laravel 10 doesn't support PHP 8.4
- php: 8.4
laravel: 10.*
# Only Laravel 12 supports PHP 8.5
- php: 8.5
laravel: 10.*
- php: 8.5
laravel: 11.*
php: [8.5]
laravel: [12.*]
dependency-version: [prefer-lowest, prefer-stable]

name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.dependency-version }}

steps:
- uses: actions/checkout@v3
Expand All @@ -49,8 +31,7 @@ jobs:

- name: Install dependencies
run: |
composer require "laravel/framework:${{ matrix.laravel }}" --no-interaction --no-update
composer require "orchestra/testbench:${{ matrix.testbench }}" "phpunit/phpunit:${{ matrix.phpunit }}" --dev --no-interaction --no-update
composer require "laravel/framework:${{ matrix.laravel }}" --${{ matrix.dependency-version }} --no-interaction --no-update
composer update --prefer-dist --no-interaction --no-progress

- name: Execute tests
Expand All @@ -59,11 +40,11 @@ jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: "laravel-pint"
uses: aglipanci/laravel-pint-action@2.0.0
with:
preset: laravel
verboseMode: true
testMode: true
onlyDirty: true
- uses: actions/checkout@v1
- name: "laravel-pint"
uses: aglipanci/laravel-pint-action@v2
with:
preset: laravel
verboseMode: true
testMode: true
onlyDirty: true
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
"prefer-stable": true,
"license": "MIT",
"require": {
"php": "^8.2",
"laravel/framework": "^8.0 || ^9.0 || ^10.0 || ^11.0 || ^12.0"
"php": "^8.5",
"laravel/framework": "^12.0"
},
"autoload": {
"psr-4": {
Expand All @@ -22,8 +22,8 @@
"test": "./vendor/bin/phpunit --configuration ./phpunit.xml"
},
"require-dev": {
"phpunit/phpunit": "^9.6.3",
"orchestra/testbench": "^7.22.0",
"laravel/pint": "^1.22.0"
"phpunit/phpunit": "^11.0",
"orchestra/testbench": "^10.0",
"laravel/pint": "^1.27"
}
}
Loading