-
Notifications
You must be signed in to change notification settings - Fork 0
85 lines (70 loc) · 1.97 KB
/
Copy pathtests.yml
File metadata and controls
85 lines (70 loc) · 1.97 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
74
75
76
77
78
79
80
81
82
83
84
85
name: tests
on:
push:
pull_request:
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- php: "8.2"
testbench: "^10.11"
phpunit: "^11.5"
suite: "laravel-12"
- php: "8.3"
testbench: "^10.11"
phpunit: "^11.5"
suite: "laravel-12"
- php: "8.3"
testbench: "^11.1"
phpunit: "^12.0"
suite: "laravel-13"
- php: "8.4"
testbench: "^11.1"
phpunit: "^12.0"
suite: "laravel-13"
- php: "8.5"
testbench: "^11.1"
phpunit: "^12.0"
suite: "laravel-13"
name: PHP ${{ matrix.php }} / ${{ matrix.suite }}
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
coverage: none
- name: Validate composer.json
run: composer validate --strict
- name: Set matrix test constraints
run: >
composer require
--dev
--no-update
--no-interaction
"orchestra/testbench:${{ matrix.testbench }}"
"phpunit/phpunit:${{ matrix.phpunit }}"
- uses: ramsey/composer-install@v3
with:
dependency-versions: highest
composer-options: --no-interaction --no-progress --prefer-dist
- name: Run test suite
run: composer test
analyse:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: "8.5"
coverage: none
- uses: ramsey/composer-install@v3
with:
dependency-versions: highest
composer-options: --no-interaction --no-progress --prefer-dist
- name: Validate composer.json
run: composer validate --strict
- name: Run static analysis
run: composer analyse