-
Notifications
You must be signed in to change notification settings - Fork 0
55 lines (46 loc) · 1.44 KB
/
tests.yml
File metadata and controls
55 lines (46 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
name: Tests
on:
push:
pull_request:
jobs:
phpunit:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ["8.2", "8.3"]
laravel: ["12", "13"]
exclude:
- php: "8.2"
laravel: "13"
name: PHP ${{ matrix.php }} · Laravel ${{ matrix.laravel }}
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
- name: Validate composer.json
run: composer validate --strict
- name: Install dependencies (Laravel 12)
if: matrix.laravel == '12'
run: >
composer update --prefer-dist --no-progress --no-interaction --with-all-dependencies
--with illuminate/support:^12.0
--with illuminate/http:^12.0
--with illuminate/auth:^12.0
--with orchestra/testbench:^10.0
--with phpunit/phpunit:^11.0
- name: Install dependencies (Laravel 13)
if: matrix.laravel == '13'
run: >
composer update --prefer-dist --no-progress --no-interaction --with-all-dependencies
--with illuminate/support:^13.0
--with illuminate/http:^13.0
--with illuminate/auth:^13.0
--with orchestra/testbench:^11.0
--with phpunit/phpunit:^12.0
- name: Run test suite
run: composer test