-
Notifications
You must be signed in to change notification settings - Fork 2
152 lines (120 loc) · 3.19 KB
/
ci.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
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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
name: CI
on:
workflow_dispatch:
push:
branches:
- develop
pull_request:
types:
- labeled
- opened
- synchronize
- reopened
jobs:
validate-composer:
name: Validate Composer
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare environment
uses: ./.github/actions/setup-validation
- name: Validate
run: task validate/composer
validate-phplint:
name: Validate PHP lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare environment
uses: ./.github/actions/setup-validation
- name: Validate
run: task validate/phplint
validate-phpcs:
name: Validate PHPCS
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare environment
uses: ./.github/actions/setup-validation
- name: Validate
run: task validate/phpcs
validate-phpstan:
name: Validate PHPStan
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare environment
uses: ./.github/actions/setup-validation
- name: Validate
run: task validate/phpstan
validate-js:
name: Validate JS
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare environment
uses: ./.github/actions/setup-validation
- name: Validate
run: task validate/js
validate-css:
name: Validate CSS
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare environment
uses: ./.github/actions/setup-validation
- name: Validate
run: task validate/css
validate-yml:
name: Validate YML
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare environment
uses: ./.github/actions/setup-validation
- name: Validate
run: task validate/yml
validate-spellcheck:
name: Validate Spellcheck
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare environment
uses: ./.github/actions/setup-validation
- name: Validate
run: task validate/spellcheck
phpunit:
name: PHPUnit
needs:
- validate-composer
- validate-phplint
- validate-phpcs
- validate-phpstan
- validate-js
- validate-css
- validate-yml
- validate-spellcheck
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Prepare environment
uses: ./.github/actions/setup-website
- name: Unit
run: docker compose exec -T php task test/unit
- name: Kernel
run: docker compose exec -T php task test/kernel
- name: Browser
run: docker compose exec -T php task test/browser
- name: Existing Site
run: docker compose exec -T php task test/existing-site
- name: Existing Site JavaScript
run: docker compose exec -T php task test/existing-site-js