-
Notifications
You must be signed in to change notification settings - Fork 10
125 lines (115 loc) · 4.03 KB
/
Copy pathtests.yml
File metadata and controls
125 lines (115 loc) · 4.03 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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
name: "Tests"
on:
push:
branches:
- master
- '*.x'
pull_request:
jobs:
run:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- php: '8.1'
laravel: '10'
pest: '2.35.1'
testbench: '^8.0'
phpunit: '10.5.17'
block_insecure: 'false'
- php: '8.2'
laravel: '10'
pest: '^2.0'
testbench: '^8.0'
phpunit: ''
block_insecure: 'true'
- php: '8.2'
laravel: '11'
pest: '^3.0'
testbench: '^9.0'
phpunit: ''
block_insecure: 'true'
- php: '8.3'
laravel: '11'
pest: '^3.0'
testbench: '^9.0'
phpunit: ''
block_insecure: 'true'
- php: '8.2'
laravel: '12'
pest: '^3.0'
testbench: '^10.0'
phpunit: ''
block_insecure: 'true'
- php: '8.3'
laravel: '12'
pest: '^3.0'
testbench: '^10.0'
phpunit: ''
block_insecure: 'true'
- php: '8.3'
laravel: '13'
pest: '^4.0'
testbench: '^11.0'
phpunit: ''
block_insecure: 'true'
- php: '8.4'
laravel: '11'
pest: '^3.0'
testbench: '^9.0'
phpunit: ''
block_insecure: 'true'
- php: '8.5'
laravel: '11'
pest: '^3.0'
testbench: '^9.0'
phpunit: ''
block_insecure: 'true'
- php: '8.4'
laravel: '12'
pest: '^3.0'
testbench: '^10.0'
phpunit: ''
block_insecure: 'true'
- php: '8.5'
laravel: '12'
pest: '^3.0'
testbench: '^10.0'
phpunit: ''
block_insecure: 'true'
- php: '8.4'
laravel: '13'
pest: '^4.0'
testbench: '^11.0'
phpunit: ''
block_insecure: 'true'
- php: '8.5'
laravel: '13'
pest: '^4.0'
testbench: '^11.0'
phpunit: ''
block_insecure: 'true'
name: PHP ${{ matrix.php }} - Laravel ${{ matrix.laravel }}
steps:
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
- name: Checkout code
uses: actions/checkout@v3
- name: Install dependencies
run: |
composer config audit.block-insecure "${{ matrix.block_insecure }}"
composer require "illuminate/support=^${{ matrix.laravel }}" "illuminate/validation=^${{ matrix.laravel }}" --no-update
dev_requirements=(
"orchestra/testbench=${{ matrix.testbench }}"
"pestphp/pest=${{ matrix.pest }}"
)
if [ -n "${{ matrix.phpunit }}" ]; then
dev_requirements+=("phpunit/phpunit=${{ matrix.phpunit }}")
fi
composer require --dev "${dev_requirements[@]}" --no-update
composer update --prefer-dist --no-interaction --no-progress
- name: Execute tests
run: ./vendor/bin/pest