Skip to content

Commit d559d93

Browse files
committed
Improve tests readability
1 parent e0a78ed commit d559d93

File tree

1 file changed

+47
-140
lines changed

1 file changed

+47
-140
lines changed

.github/workflows/test.yaml

Lines changed: 47 additions & 140 deletions
Original file line numberDiff line numberDiff line change
@@ -11,179 +11,86 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313

14-
- name: Checkout
15-
uses: actions/checkout@v2
16-
17-
- name: lint
18-
run: make lint
14+
- uses: actions/checkout@v2
15+
- run: make lint
1916

2017
test-71:
21-
name: php-7.1
2218
runs-on: ubuntu-latest
2319
needs: lint
2420
steps:
2521

26-
- name: Checkout
27-
uses: actions/checkout@v2
28-
29-
- name: alpine-3.7
30-
run: make test-image IMAGE="php:7.1-fpm-alpine3.7" DOCKERFILE="alpine"
31-
32-
- name: alpine-3.8
33-
run: make test-image IMAGE="php:7.1-fpm-alpine3.8" DOCKERFILE="alpine"
34-
35-
- name: alpine-3.9
36-
run: make test-image IMAGE="php:7.1-fpm-alpine3.9" DOCKERFILE="alpine"
37-
38-
- name: alpine-3.10
39-
run: make test-image IMAGE="php:7.1-fpm-alpine3.10" DOCKERFILE="alpine"
40-
41-
- name: stretch
42-
run: make test-image IMAGE="php:7.1-fpm-stretch" DOCKERFILE="stretch"
43-
44-
- name: buster
45-
run: make test-image IMAGE="php:7.1-fpm-buster" DOCKERFILE="buster"
22+
- uses: actions/checkout@v2
23+
- run: make test-image IMAGE="php:7.1-fpm-alpine3.7" DOCKERFILE="alpine"
24+
- run: make test-image IMAGE="php:7.1-fpm-alpine3.8" DOCKERFILE="alpine"
25+
- run: make test-image IMAGE="php:7.1-fpm-alpine3.9" DOCKERFILE="alpine"
26+
- run: make test-image IMAGE="php:7.1-fpm-alpine3.10" DOCKERFILE="alpine"
27+
- run: make test-image IMAGE="php:7.1-fpm-stretch" DOCKERFILE="stretch"
28+
- run: make test-image IMAGE="php:7.1-fpm-buster" DOCKERFILE="buster"
4629

4730
test-72:
48-
name: php-7.2
4931
runs-on: ubuntu-latest
5032
needs: lint
5133
steps:
5234

53-
- name: Checkout
54-
uses: actions/checkout@v2
55-
56-
- name: alpine-3.7
57-
run: make test-image IMAGE="php:7.2-fpm-alpine3.7" DOCKERFILE="alpine"
58-
59-
- name: alpine-3.8
60-
run: make test-image IMAGE="php:7.2-fpm-alpine3.8" DOCKERFILE="alpine"
61-
62-
- name: alpine-3.9
63-
run: make test-image IMAGE="php:7.2-fpm-alpine3.9" DOCKERFILE="alpine"
64-
65-
- name: alpine-3.10
66-
run: make test-image IMAGE="php:7.2-fpm-alpine3.10" DOCKERFILE="alpine"
67-
68-
- name: alpine-3.11
69-
run: make test-image IMAGE="php:7.2-fpm-alpine3.11" DOCKERFILE="alpine"
70-
71-
- name: alpine-3.12
72-
run: make test-image IMAGE="php:7.2-fpm-alpine3.12" DOCKERFILE="alpine"
73-
74-
- name: stretch
75-
run: make test-image IMAGE="php:7.2-fpm-stretch" DOCKERFILE="stretch"
76-
77-
- name: buster
78-
run: make test-image IMAGE="php:7.2-fpm-buster" DOCKERFILE="buster"
35+
- uses: actions/checkout@v2
36+
- run: make test-image IMAGE="php:7.2-fpm-alpine3.7" DOCKERFILE="alpine"
37+
- run: make test-image IMAGE="php:7.2-fpm-alpine3.8" DOCKERFILE="alpine"
38+
- run: make test-image IMAGE="php:7.2-fpm-alpine3.9" DOCKERFILE="alpine"
39+
- run: make test-image IMAGE="php:7.2-fpm-alpine3.10" DOCKERFILE="alpine"
40+
- run: make test-image IMAGE="php:7.2-fpm-alpine3.11" DOCKERFILE="alpine"
41+
- run: make test-image IMAGE="php:7.2-fpm-alpine3.12" DOCKERFILE="alpine"
42+
- run: make test-image IMAGE="php:7.2-fpm-stretch" DOCKERFILE="stretch"
43+
- run: make test-image IMAGE="php:7.2-fpm-buster" DOCKERFILE="buster"
7944

8045
test-73:
81-
name: php-7.3
8246
runs-on: ubuntu-latest
8347
needs: lint
8448
steps:
8549

86-
- name: Checkout
87-
uses: actions/checkout@v2
88-
89-
- name: alpine-3.8
90-
run: make test-image IMAGE="php:7.3-fpm-alpine3.8" DOCKERFILE="alpine"
91-
92-
- name: alpine-3.9
93-
run: make test-image IMAGE="php:7.3-fpm-alpine3.9" DOCKERFILE="alpine"
94-
95-
- name: alpine-3.10
96-
run: make test-image IMAGE="php:7.3-fpm-alpine3.10" DOCKERFILE="alpine"
97-
98-
- name: alpine-3.11
99-
run: make test-image IMAGE="php:7.3-fpm-alpine3.11" DOCKERFILE="alpine"
100-
101-
- name: alpine-3.12
102-
run: make test-image IMAGE="php:7.3-fpm-alpine3.12" DOCKERFILE="alpine"
103-
104-
- name: alpine-3.13
105-
run: make test-image IMAGE="php:7.3-fpm-alpine3.13" DOCKERFILE="alpine"
106-
107-
- name: alpine-3.14
108-
run: make test-image IMAGE="php:7.3-fpm-alpine3.14" DOCKERFILE="alpine"
109-
110-
- name: alpine-3.15
111-
run: make test-image IMAGE="php:7.3-fpm-alpine3.15" DOCKERFILE="alpine"
112-
113-
- name: stretch
114-
run: make test-image IMAGE="php:7.3-fpm-stretch" DOCKERFILE="stretch"
115-
116-
- name: buster
117-
run: make test-image IMAGE="php:7.3-fpm-buster" DOCKERFILE="buster"
50+
- uses: actions/checkout@v2
51+
- run: make test-image IMAGE="php:7.3-fpm-alpine3.8" DOCKERFILE="alpine"
52+
- run: make test-image IMAGE="php:7.3-fpm-alpine3.9" DOCKERFILE="alpine"
53+
- run: make test-image IMAGE="php:7.3-fpm-alpine3.10" DOCKERFILE="alpine"
54+
- run: make test-image IMAGE="php:7.3-fpm-alpine3.11" DOCKERFILE="alpine"
55+
- run: make test-image IMAGE="php:7.3-fpm-alpine3.12" DOCKERFILE="alpine"
56+
- run: make test-image IMAGE="php:7.3-fpm-alpine3.13" DOCKERFILE="alpine"
57+
- run: make test-image IMAGE="php:7.3-fpm-alpine3.14" DOCKERFILE="alpine"
58+
- run: make test-image IMAGE="php:7.3-fpm-alpine3.15" DOCKERFILE="alpine"
59+
- run: make test-image IMAGE="php:7.3-fpm-stretch" DOCKERFILE="stretch"
60+
- run: make test-image IMAGE="php:7.3-fpm-buster" DOCKERFILE="buster"
11861

11962
test-74:
120-
name: php-7.4
12163
runs-on: ubuntu-latest
12264
needs: lint
12365
steps:
12466

125-
- name: Checkout
126-
uses: actions/checkout@v2
127-
128-
- name: alpine-3.10
129-
run: make test-image IMAGE="php:7.4-fpm-alpine3.10" DOCKERFILE="alpine"
130-
131-
- name: alpine-3.11
132-
run: make test-image IMAGE="php:7.4-fpm-alpine3.11" DOCKERFILE="alpine"
133-
134-
- name: alpine-3.12
135-
run: make test-image IMAGE="php:7.4-fpm-alpine3.12" DOCKERFILE="alpine"
136-
137-
- name: alpine-3.13
138-
run: make test-image IMAGE="php:7.4-fpm-alpine3.13" DOCKERFILE="alpine"
139-
140-
- name: alpine-3.14
141-
run: make test-image IMAGE="php:7.4-fpm-alpine3.14" DOCKERFILE="alpine"
142-
143-
- name: alpine-3.15
144-
run: make test-image IMAGE="php:7.4-fpm-alpine3.15" DOCKERFILE="alpine"
145-
146-
- name: buster
147-
run: make test-image IMAGE="php:7.4-fpm-buster" DOCKERFILE="buster"
67+
- uses: actions/checkout@v2
68+
- run: make test-image IMAGE="php:7.4-fpm-alpine3.10" DOCKERFILE="alpine"
69+
- run: make test-image IMAGE="php:7.4-fpm-alpine3.11" DOCKERFILE="alpine"
70+
- run: make test-image IMAGE="php:7.4-fpm-alpine3.12" DOCKERFILE="alpine"
71+
- run: make test-image IMAGE="php:7.4-fpm-alpine3.13" DOCKERFILE="alpine"
72+
- run: make test-image IMAGE="php:7.4-fpm-alpine3.14" DOCKERFILE="alpine"
73+
- run: make test-image IMAGE="php:7.4-fpm-alpine3.15" DOCKERFILE="alpine"
74+
- run: make test-image IMAGE="php:7.4-fpm-buster" DOCKERFILE="buster"
14875

14976
test-80:
150-
name: php-8.0
15177
runs-on: ubuntu-latest
15278
needs: lint
15379
steps:
15480

155-
- name: Checkout
156-
uses: actions/checkout@v2
157-
158-
- name: alpine-3.12
159-
run: make test-image IMAGE="php:8.0-fpm-alpine3.12" DOCKERFILE="alpine"
160-
161-
- name: alpine-3.13
162-
run: make test-image IMAGE="php:8.0-fpm-alpine3.13" DOCKERFILE="alpine"
163-
164-
- name: alpine-3.14
165-
run: make test-image IMAGE="php:8.0-fpm-alpine3.14" DOCKERFILE="alpine"
166-
167-
- name: alpine-3.15
168-
run: make test-image IMAGE="php:8.0-fpm-alpine3.15" DOCKERFILE="alpine"
169-
170-
- name: buster
171-
run: make test-image IMAGE="php:8.0-fpm-buster" DOCKERFILE="buster"
81+
- uses: actions/checkout@v2
82+
- run: make test-image IMAGE="php:8.0-fpm-alpine3.12" DOCKERFILE="alpine"
83+
- run: make test-image IMAGE="php:8.0-fpm-alpine3.13" DOCKERFILE="alpine"
84+
- run: make test-image IMAGE="php:8.0-fpm-alpine3.14" DOCKERFILE="alpine"
85+
- run: make test-image IMAGE="php:8.0-fpm-alpine3.15" DOCKERFILE="alpine"
86+
- run: make test-image IMAGE="php:8.0-fpm-buster" DOCKERFILE="buster"
17287

17388
test-81:
174-
name: php-8.1
17589
runs-on: ubuntu-latest
17690
needs: lint
17791
steps:
17892

179-
- name: Checkout
180-
uses: actions/checkout@v2
181-
182-
- name: alpine-3.14
183-
run: make test-image IMAGE="php:8.1-fpm-alpine3.14" DOCKERFILE="alpine"
184-
185-
- name: alpine-3.15
186-
run: make test-image IMAGE="php:8.1-fpm-alpine3.15" DOCKERFILE="alpine"
187-
188-
- name: buster
189-
run: make test-image IMAGE="php:8.1-fpm-buster" DOCKERFILE="buster"
93+
- uses: actions/checkout@v2
94+
- run: make test-image IMAGE="php:8.1-fpm-alpine3.14" DOCKERFILE="alpine"
95+
- run: make test-image IMAGE="php:8.1-fpm-alpine3.15" DOCKERFILE="alpine"
96+
- run: make test-image IMAGE="php:8.1-fpm-buster" DOCKERFILE="buster"

0 commit comments

Comments
 (0)