Skip to content

Commit 3f7dc36

Browse files
GHA Workflow instead of Travis CI (#49)
1 parent 775e5ee commit 3f7dc36

File tree

3 files changed

+272
-260
lines changed

3 files changed

+272
-260
lines changed

.github/workflows/tests.yml

+265
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,265 @@
1+
on:
2+
pull_request:
3+
schedule:
4+
- cron: "0 0 * * *"
5+
6+
concurrency:
7+
group: ${{ github.head_ref || 'cron' }}
8+
cancel-in-progress: true
9+
10+
jobs:
11+
tests:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
matrix:
15+
php-version:
16+
- '8.1'
17+
- '8.0'
18+
- '7.4'
19+
- '7.3'
20+
- '7.2'
21+
- '7.1'
22+
- '7.0'
23+
phpunit-version:
24+
- '9.5.0'
25+
- '9.4.0'
26+
- '9.3.0'
27+
- '9.2.0'
28+
- '9.1.0'
29+
- '9.0.0'
30+
- '8.4.0'
31+
- '8.3.0'
32+
- '8.2.0'
33+
- '8.1.0'
34+
- '8.0.0'
35+
- '7.5.0'
36+
- '7.4.0'
37+
- '7.3.0'
38+
- '7.2.0'
39+
- '7.1.0'
40+
- '7.0.0'
41+
- '6.5.0'
42+
- '6.4.0'
43+
- '6.3.0'
44+
- '6.2.0'
45+
- '6.1.0'
46+
- '6.0.0'
47+
48+
exclude:
49+
# PHP 8.1 Exclusions
50+
- php-version: '8.1'
51+
phpunit-version: '9.4.0'
52+
- php-version: '8.1'
53+
phpunit-version: '9.3.0'
54+
- php-version: '8.1'
55+
phpunit-version: '9.2.0'
56+
- php-version: '8.1'
57+
phpunit-version: '9.1.0'
58+
- php-version: '8.1'
59+
phpunit-version: '9.0.0'
60+
- php-version: '8.1'
61+
phpunit-version: '8.4.0'
62+
- php-version: '8.1'
63+
phpunit-version: '8.3.0'
64+
- php-version: '8.1'
65+
phpunit-version: '8.2.0'
66+
- php-version: '8.1'
67+
phpunit-version: '8.1.0'
68+
- php-version: '8.1'
69+
phpunit-version: '8.0.0'
70+
- php-version: '8.1'
71+
phpunit-version: '7.5.0'
72+
- php-version: '8.1'
73+
phpunit-version: '7.4.0'
74+
- php-version: '8.1'
75+
phpunit-version: '7.3.0'
76+
- php-version: '8.1'
77+
phpunit-version: '7.2.0'
78+
- php-version: '8.1'
79+
phpunit-version: '7.1.0'
80+
- php-version: '8.1'
81+
phpunit-version: '7.0.0'
82+
- php-version: '8.1'
83+
phpunit-version: '6.5.0'
84+
- php-version: '8.1'
85+
phpunit-version: '6.4.0'
86+
- php-version: '8.1'
87+
phpunit-version: '6.3.0'
88+
- php-version: '8.1'
89+
phpunit-version: '6.2.0'
90+
- php-version: '8.1'
91+
phpunit-version: '6.1.0'
92+
- php-version: '8.1'
93+
phpunit-version: '6.0.0'
94+
95+
# PHP 8.0 Exclusions
96+
- php-version: '8.0'
97+
phpunit-version: '9.2.0'
98+
- php-version: '8.0'
99+
phpunit-version: '9.1.0'
100+
- php-version: '8.0'
101+
phpunit-version: '9.0.0'
102+
- php-version: '8.0'
103+
phpunit-version: '8.4.0'
104+
- php-version: '8.0'
105+
phpunit-version: '8.3.0'
106+
- php-version: '8.0'
107+
phpunit-version: '8.2.0'
108+
- php-version: '8.0'
109+
phpunit-version: '8.1.0'
110+
- php-version: '8.0'
111+
phpunit-version: '8.0.0'
112+
- php-version: '8.0'
113+
phpunit-version: '7.5.0'
114+
- php-version: '8.0'
115+
phpunit-version: '7.4.0'
116+
- php-version: '8.0'
117+
phpunit-version: '7.3.0'
118+
- php-version: '8.0'
119+
phpunit-version: '7.2.0'
120+
- php-version: '8.0'
121+
phpunit-version: '7.1.0'
122+
- php-version: '8.0'
123+
phpunit-version: '7.0.0'
124+
- php-version: '8.0'
125+
phpunit-version: '6.5.0'
126+
- php-version: '8.0'
127+
phpunit-version: '6.4.0'
128+
- php-version: '8.0'
129+
phpunit-version: '6.3.0'
130+
- php-version: '8.0'
131+
phpunit-version: '6.2.0'
132+
- php-version: '8.0'
133+
phpunit-version: '6.1.0'
134+
- php-version: '8.0'
135+
phpunit-version: '6.0.0'
136+
137+
# PHP 7.4 Exclusions
138+
- php-version: '7.4'
139+
phpunit-version: '8.1.0'
140+
- php-version: '7.4'
141+
phpunit-version: '8.0.0'
142+
- php-version: '7.4'
143+
phpunit-version: '7.4.0'
144+
- php-version: '7.4'
145+
phpunit-version: '7.3.0'
146+
- php-version: '7.4'
147+
phpunit-version: '7.2.0'
148+
- php-version: '7.4'
149+
phpunit-version: '7.1.0'
150+
- php-version: '7.4'
151+
phpunit-version: '7.0.0'
152+
- php-version: '7.4'
153+
phpunit-version: '6.5.0'
154+
- php-version: '7.4'
155+
phpunit-version: '6.4.0'
156+
- php-version: '7.4'
157+
phpunit-version: '6.3.0'
158+
- php-version: '7.4'
159+
phpunit-version: '6.2.0'
160+
- php-version: '7.4'
161+
phpunit-version: '6.1.0'
162+
- php-version: '7.4'
163+
phpunit-version: '6.0.0'
164+
165+
# PHP 7.2 Exclusions
166+
- php-version: '7.2'
167+
phpunit-version: '9.5.0'
168+
- php-version: '7.2'
169+
phpunit-version: '9.4.0'
170+
- php-version: '7.2'
171+
phpunit-version: '9.3.0'
172+
- php-version: '7.2'
173+
phpunit-version: '9.2.0'
174+
- php-version: '7.2'
175+
phpunit-version: '9.1.0'
176+
- php-version: '7.2'
177+
phpunit-version: '9.0.0'
178+
179+
# PHP 7.1 Exclusions
180+
- php-version: '7.1'
181+
phpunit-version: '9.5.0'
182+
- php-version: '7.1'
183+
phpunit-version: '9.4.0'
184+
- php-version: '7.1'
185+
phpunit-version: '9.3.0'
186+
- php-version: '7.1'
187+
phpunit-version: '9.2.0'
188+
- php-version: '7.1'
189+
phpunit-version: '9.1.0'
190+
- php-version: '7.1'
191+
phpunit-version: '9.0.0'
192+
- php-version: '7.1'
193+
phpunit-version: '8.5.0'
194+
- php-version: '7.1'
195+
phpunit-version: '8.4.0'
196+
- php-version: '7.1'
197+
phpunit-version: '8.3.0'
198+
- php-version: '7.1'
199+
phpunit-version: '8.2.0'
200+
- php-version: '7.1'
201+
phpunit-version: '8.1.0'
202+
- php-version: '7.1'
203+
phpunit-version: '8.0.0'
204+
205+
# PHP 7.0 Exclusions
206+
- php-version: '7.0'
207+
phpunit-version: '9.5.0'
208+
- php-version: '7.0'
209+
phpunit-version: '9.4.0'
210+
- php-version: '7.0'
211+
phpunit-version: '9.3.0'
212+
- php-version: '7.0'
213+
phpunit-version: '9.2.0'
214+
- php-version: '7.0'
215+
phpunit-version: '9.1.0'
216+
- php-version: '7.0'
217+
phpunit-version: '9.0.0'
218+
- php-version: '7.0'
219+
phpunit-version: '8.5.0'
220+
- php-version: '7.0'
221+
phpunit-version: '8.4.0'
222+
- php-version: '7.0'
223+
phpunit-version: '8.3.0'
224+
- php-version: '7.0'
225+
phpunit-version: '8.2.0'
226+
- php-version: '7.0'
227+
phpunit-version: '8.1.0'
228+
- php-version: '7.0'
229+
phpunit-version: '8.0.0'
230+
- php-version: '7.0'
231+
phpunit-version: '7.5.0'
232+
- php-version: '7.0'
233+
phpunit-version: '7.4.0'
234+
- php-version: '7.0'
235+
phpunit-version: '7.3.0'
236+
- php-version: '7.0'
237+
phpunit-version: '7.2.0'
238+
- php-version: '7.0'
239+
phpunit-version: '7.1.0'
240+
- php-version: '7.0'
241+
phpunit-version: '7.0.0'
242+
243+
name: PHPUnit ${{ matrix.phpunit-version }} on PHP ${{ matrix.php-version }}
244+
steps:
245+
- name: Checkout
246+
uses: actions/checkout@v2
247+
with:
248+
ref: ${{ github.head_ref }}
249+
250+
- name: Install PHP
251+
uses: shivammathur/setup-php@v2
252+
with:
253+
php-version: ${{ matrix.php-version }}
254+
255+
- name: Install Dependencies
256+
run: composer require phpunit/phpunit:~${{ matrix.phpunit-version }} squizlabs/php_codesniffer phpmd/phpmd
257+
258+
- name: PHPUnit
259+
run: vendor/bin/phpunit
260+
261+
- name: PHPCS
262+
run: vendor/bin/phpcs --standard=PSR2 classes/ tests/
263+
264+
- name: PHPMD
265+
run: vendor/bin/phpmd classes/ text cleancode,codesize,controversial,design,naming,unusedcode

0 commit comments

Comments
 (0)