Skip to content

Commit 6df7636

Browse files
authored
Laravel 12 support (#18)
1 parent 6972480 commit 6df7636

File tree

4 files changed

+38
-25
lines changed

4 files changed

+38
-25
lines changed

.github/workflows/tests.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: PHPUnit tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
tests:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
fail-fast: false
10+
matrix:
11+
os: [ ubuntu-latest ]
12+
php: [ 8.2, 8.3, 8.4 ]
13+
laravel: [ 11.*, 12.* ]
14+
stability: [ prefer-lowest, prefer-stable ]
15+
16+
name: Tests on PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }} - ${{ matrix.stability }}
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v4
21+
22+
- name: Setup PHP
23+
uses: shivammathur/setup-php@v2
24+
with:
25+
php-version: ${{ matrix.php }}
26+
tools: composer:v2
27+
28+
- name: Install dependencies
29+
run: |
30+
composer require "illuminate/notifications:${{ matrix.laravel }}" "illuminate/support:${{ matrix.laravel }}" --no-interaction --no-update
31+
composer update --${{ matrix.stability }} --prefer-dist --no-interaction --no-progress
32+
33+
- name: Execute tests
34+
run: vendor/bin/phpunit

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ build
33
composer.phar
44
composer.lock
55
.phpunit.result.cache
6+
.idea

.travis.yml

-22
This file was deleted.

composer.json

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,11 @@
1515
"require": {
1616
"php": ">=8.2",
1717
"guzzlehttp/guzzle": "^7.8.2",
18-
"illuminate/notifications": "^11.0",
19-
"illuminate/support": "^11.0"
18+
"illuminate/notifications": "^11.0|^12.0",
19+
"illuminate/support": "^11.0|^12.0"
2020
},
2121
"require-dev": {
22-
"illuminate/queue": "^11.0",
22+
"illuminate/queue": "^11.0|^12.0",
2323
"mockery/mockery": "^1.6.10",
2424
"phpunit/phpunit": "^10.5.35|^11.3.6"
2525
},

0 commit comments

Comments
 (0)