Skip to content

Commit f647fce

Browse files
committed
Add Laravel 13 support
1 parent 4a90fdc commit f647fce

2 files changed

Lines changed: 32 additions & 46 deletions

File tree

.github/workflows/run-tests.yml

Lines changed: 28 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,47 @@
1-
name: Tests
1+
name: Run Tests
22

33
on:
44
push:
5-
branches:
6-
- master
7-
pull_request:
8-
workflow_dispatch:
9-
10-
permissions:
11-
contents: read
12-
13-
concurrency:
14-
group: ${{ github.workflow }}-${{ github.ref }}
15-
cancel-in-progress: true
165

176
jobs:
18-
tests:
19-
name: PHP ${{ matrix.php }}
20-
runs-on: ubuntu-latest
21-
timeout-minutes: 10
7+
test:
8+
runs-on: ${{ matrix.os }}
229

2310
strategy:
24-
fail-fast: false
11+
fail-fast: true
2512
matrix:
26-
php:
27-
- '8.2'
28-
- '8.3'
29-
- '8.4'
13+
os: [ubuntu-latest]
14+
php: [8.4, 8.3, 8.2]
15+
include:
16+
- php: 8.4
17+
laravel: 13.*
18+
testbench: 11.*
19+
20+
- php: 8.3
21+
laravel: 12.*
22+
testbench: 10.*
23+
24+
- php: 8.2
25+
laravel: 11.*
26+
testbench: 9.*
27+
28+
name: P${{ matrix.php }} - L${{ matrix.laravel }} - ${{ matrix.os }}
3029

3130
steps:
32-
- name: Checkout
33-
uses: actions/checkout@v6.0.3
31+
- name: Checkout code
32+
uses: actions/checkout@v4
3433

3534
- name: Setup PHP
3635
uses: shivammathur/setup-php@v2
3736
with:
3837
php-version: ${{ matrix.php }}
39-
tools: composer:v2
38+
extensions: dom, curl, libxml, mbstring, zip, pcntl, pdo, sqlite, pdo_sqlite, bcmath, soap, intl, gd, exif, iconv, imagick, fileinfo
4039
coverage: none
4140

42-
- name: Validate Composer
43-
run: composer validate --strict
44-
45-
- name: Get Composer cache directory
46-
id: composer-cache
47-
run: echo "directory=$(composer config cache-files-dir)" >> "$GITHUB_OUTPUT"
48-
49-
- name: Cache Composer dependencies
50-
uses: actions/cache@v5.0.5
51-
with:
52-
path: ${{ steps.composer-cache.outputs.directory }}
53-
key: ${{ runner.os }}-php-${{ matrix.php }}-composer-${{ hashFiles('composer.json') }}
54-
restore-keys: |
55-
${{ runner.os }}-php-${{ matrix.php }}-composer-
56-
5741
- name: Install dependencies
58-
run: composer update --prefer-dist --no-interaction --no-progress
42+
run: |
43+
composer require "laravel/framework:${{ matrix.laravel }}" "orchestra/testbench:${{ matrix.testbench }}" --no-interaction --no-update
44+
composer update --prefer-dist --no-interaction
5945
60-
- name: Run tests
61-
run: ./vendor/bin/pest
46+
- name: Execute tests
47+
run: vendor/bin/pest --ci

composer.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
"require": {
77
"php": "^8.2",
88
"ext-zip": "*",
9-
"illuminate/http": "^11.0|^12.0",
10-
"illuminate/console": "^11.0|^12.0",
11-
"illuminate/support": "^11.0|^12.0",
9+
"illuminate/http": "^11.0|^12.0|^13.0",
10+
"illuminate/console": "^11.0|^12.0|^13.0",
11+
"illuminate/support": "^11.0|^12.0|^13.0",
1212
"directorytree/privacy-filter-classifier": "^1.1"
1313
},
1414
"require-dev": {
1515
"laravel/pint": "^1.0",
16-
"orchestra/testbench": "^9.0|^10.0",
16+
"orchestra/testbench": "^9.0|^10.0|^11.0",
1717
"pestphp/pest": "^3.0|^4.0",
1818
"pestphp/pest-plugin-laravel": "^3.0|^4.0"
1919
},

0 commit comments

Comments
 (0)