-
Notifications
You must be signed in to change notification settings - Fork 16
95 lines (80 loc) · 2.2 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
name: tests
on:
push:
pull_request:
schedule:
# @todo Refactor workflow execution and introduce a generic workflow dispatching
# scheduled workflow, so nighlies can be ensured over branches (for the future).
- cron: "15 6 * * *"
jobs:
lint:
name: Linting
runs-on: ubuntu-latest
strategy:
matrix:
php:
- '8.1'
- '8.2'
- '8.3'
- '8.4'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Lint PHP
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s lint
unit:
name: Unit
runs-on: ubuntu-latest
strategy:
matrix:
php:
- '8.1'
- '8.2'
- '8.3'
- '8.4'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install testing system
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s composerUpdate
- name: unit
run: Build/Scripts/runTests.sh -n -p ${{ matrix.php }} -s unit
functional:
name: Functional
runs-on: ubuntu-latest
strategy:
matrix:
php:
- '8.1'
- '8.2'
- '8.3'
- '8.4'
db:
- 'mysql'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install testing system
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s composerUpdate
- name: Lint PHP
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s functional -d ${{ matrix.db }}
code-quality:
name: Code quality
runs-on: ubuntu-latest
strategy:
matrix:
php:
- '8.1'
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install testing system
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s composerUpdate
- name: Composer validate
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s composerValidate
- name: Composer normalize
run: Build/Scripts/runTests.sh -p ${{ matrix.php }} -s composerNormalize -n
- name: CGL
run: Build/Scripts/runTests.sh -n -p ${{ matrix.php }} -s cgl
- name: phpstan
run: Build/Scripts/runTests.sh -n -p ${{ matrix.php }} -s phpstan