-
-
Notifications
You must be signed in to change notification settings - Fork 40
97 lines (84 loc) · 2.5 KB
/
tests.yml
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
name: Run Tests
on:
push:
branches:
- main
- dev
pull_request:
schedule:
- cron: "0 0 * * *"
jobs:
php-tests:
runs-on: ubuntu-latest
continue-on-error: false
strategy:
matrix:
php: [8.2, 8.3, 8.4]
laravel: [10.*, 11.*]
dependency-version: [prefer-lowest, prefer-stable]
include:
- laravel: 10.*
testbench: 8.*
pest: ^2.34
pest-plugin: ^2.4
php: 8.2
- laravel: 10.*
testbench: 8.*
pest: ^2.34
pest-plugin: ^2.4
php: 8.3
- laravel: 10.*
testbench: 8.*
pest: ^2.34
pest-plugin: ^2.4
php: 8.4
- laravel: 11.*
testbench: 9.*
pest: ^3.7.4
pest-plugin: ^3.0
php: 8.2
- laravel: 11.*
testbench: 9.*
pest: ^3.7.4
pest-plugin: ^3.0
php: 8.3
- laravel: 11.*
testbench: 9.*
pest: ^3.7.4
pest-plugin: ^3.0
php: 8.4
name: PHP${{ matrix.php }} - Laravel${{ matrix.laravel }} - Testbench${{ matrix.testbench }} - Pest${{ matrix.pest }} - Pest-Plugin${{ matrix.pest-plugin }} - ${{ matrix.dependency-version }}
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: ${{ matrix.php }}
extensions: dom, curl, mbstring, zip, sqlite, bcmath, soap, intl
coverage: none
- name: Install dependencies
run: |
composer require --dev \
"laravel/framework:${{ matrix.laravel }}" \
"orchestra/testbench:${{ matrix.testbench }}" \
"pestphp/pest:${{ matrix.pest }}" \
"pestphp/pest-plugin-laravel:${{ matrix.pest-plugin }}" \
--no-interaction --no-update
composer update --${{ matrix.dependency-version }} --prefer-dist --no-interaction
- name: Run tests
run: vendor/bin/pest --ci
lint-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.2
extensions: mbstring, dom, curl
- name: Install Composer dependencies
run: composer install --no-interaction
- name: Run Pint for linting
run: vendor/bin/pint --test