-
Notifications
You must be signed in to change notification settings - Fork 28
73 lines (59 loc) · 1.76 KB
/
Copy pathtests.yml
File metadata and controls
73 lines (59 loc) · 1.76 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Tests
on:
push:
pull_request:
schedule:
- cron: '0 7 * * 1'
jobs:
tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
php: ['8.1', '8.2', '8.3', '8.4']
laravel: ['10', '11', '12', '13']
exclude:
- laravel: '11'
php: '8.1'
- laravel: '12'
php: '8.1'
- laravel: '13'
php: '8.1'
- laravel: '13'
php: '8.2'
- laravel: '10'
php: '8.4'
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
- name: Install dependencies
# EOL Laravel versions have unpatched security advisories, which newer
# Composer refuses to install by default. We still want to test against
# them, so disable the advisory block for dependency resolution.
run: |
composer config policy.advisories.block false
composer require "illuminate/support:^${{ matrix.laravel }}.0" --no-interaction --no-update
composer update --prefer-dist --no-interaction --no-progress
- name: Run tests
run: vendor/bin/phpunit
lint:
runs-on: ubuntu-latest
name: Code style
steps:
- name: Checkout code
uses: actions/checkout@v5
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.4'
coverage: none
- name: Install dependencies
run: composer update --prefer-dist --no-interaction --no-progress
- name: Run Pint
run: vendor/bin/pint --test