Skip to content

Commit 2441047

Browse files
authored
Merge pull request #3 from whitecube/laravel-12
Laravel 12
2 parents 9707458 + 6030438 commit 2441047

26 files changed

+3955
-2437
lines changed

.github/workflows/run_tests.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: run-tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
os: [ubuntu-latest]
12+
php: [8.4, 8.3, 8.2]
13+
laravel: [12.*, 11.*, 10.*]
14+
stability: [prefer-stable]
15+
include:
16+
- laravel: 12.*
17+
testbench: 10.*
18+
- laravel: 11.*
19+
testbench: 9.*
20+
- laravel: 10.*
21+
testbench: 8.*
22+
23+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.stability }} - ${{ matrix.os }}
24+
25+
steps:
26+
- name: Checkout code
27+
uses: actions/checkout@v4
28+
29+
- name: Setup PHP
30+
uses: shivammathur/setup-php@v2
31+
with:
32+
php-version: ${{ matrix.php }}
33+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick
34+
coverage: none
35+
36+
- name: Install dependencies
37+
run: |
38+
rm composer.lock
39+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction
40+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction
41+
42+
- name: Execute tests
43+
run: vendor/bin/pest --color=always

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,4 @@ Homestead.yaml
2121
Homestead.json
2222
/.vagrant
2323
.phpunit.result.cache
24+
.phpunit.cache/test-results

composer.json

+9-3
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,11 @@
66
"prefer-stable": true,
77
"require": {
88
"php": ">=8.0.0",
9-
"laravel/framework": "^8.0|^9.0|^10.0|^11.0"
9+
"laravel/framework": "^10.0|^11.0|^12.0",
10+
"laravel/pint": "^1.21"
1011
},
1112
"require-dev": {
12-
"pestphp/pest": "^1.10"
13+
"pestphp/pest": "^2.0|^3.0"
1314
},
1415
"license": "MIT",
1516
"autoload": {
@@ -27,5 +28,10 @@
2728
"name": "Toon Van den Bos",
2829
"email": "[email protected]"
2930
}
30-
]
31+
],
32+
"config": {
33+
"allow-plugins": {
34+
"pestphp/pest-plugin": true
35+
}
36+
}
3137
}

0 commit comments

Comments
 (0)