-
Notifications
You must be signed in to change notification settings - Fork 4
282 lines (260 loc) · 6.08 KB
/
shell_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
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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
name: Shell Tests
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
shellcheck:
name: ShellCheck
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Run shellcheck
uses: ludeeus/action-shellcheck@master
env:
SHELLCHECK_OPTS: -e SC1091
# https://github.com/koalaman/shellcheck/wiki/SC1091
sh-ubuntu-2004:
name: sh (ubuntu-20.04)
runs-on: ubuntu-20.04
env:
TEST_SHELL: sh
EXPECT_ARCH: x86_64
EXPECT_CODENAME: focal
EXPECT_DISTRO: ubuntu
EXPECT_INIT: systemd
EXPECT_KERNEL: linux
EXPECT_RELEASE: '20.04'
steps:
- uses: actions/checkout@v2
- name: Run tests
run: make test_shell
bash-ubuntu-2004:
name: bash (ubuntu-20.04)
runs-on: ubuntu-20.04
env:
TEST_SHELL: bash
EXPECT_ARCH: x86_64
EXPECT_CODENAME: focal
EXPECT_DISTRO: ubuntu
EXPECT_INIT: systemd
EXPECT_KERNEL: linux
EXPECT_RELEASE: '20.04'
steps:
- uses: actions/checkout@v2
- name: Run tests
run: make test_shell
ksh-ubuntu-2004:
name: ksh (ubuntu-20.04)
runs-on: ubuntu-20.04
env:
TEST_SHELL: ksh
EXPECT_ARCH: x86_64
EXPECT_CODENAME: focal
EXPECT_DISTRO: ubuntu
EXPECT_INIT: systemd
EXPECT_KERNEL: linux
EXPECT_RELEASE: '20.04'
steps:
- uses: actions/checkout@v2
- name: Run tests
run: |
sudo apt install -y ksh
make test_shell
ash-ubuntu-2004:
name: ash (ubuntu-20.04)
runs-on: ubuntu-20.04
env:
TEST_SHELL: ash
EXPECT_ARCH: x86_64
EXPECT_CODENAME: focal
EXPECT_DISTRO: ubuntu
EXPECT_INIT: systemd
EXPECT_KERNEL: linux
EXPECT_RELEASE: '20.04'
steps:
- uses: actions/checkout@v2
- name: Run tests
run: |
sudo apt install -y ash
make test_shell
zsh-ubuntu-2004:
name: zsh (ubuntu-20.04)
runs-on: ubuntu-20.04
env:
TEST_SHELL: zsh
EXPECT_ARCH: x86_64
EXPECT_CODENAME: focal
EXPECT_DISTRO: ubuntu
EXPECT_INIT: systemd
EXPECT_KERNEL: linux
EXPECT_RELEASE: '20.04'
steps:
- uses: actions/checkout@v2
- name: Run tests
run: |
sudo apt install -y zsh
make test_shell
sh-ubuntu-latest:
name: sh (ubuntu-latest)
runs-on: ubuntu-latest
env:
TEST_SHELL: sh
steps:
- uses: actions/checkout@v2
- name: Run tests
run: make test_shell
bash-ubuntu-latest:
name: bash (ubuntu-latest)
runs-on: ubuntu-latest
env:
TEST_SHELL: bash
steps:
- uses: actions/checkout@v2
- name: Run tests
run: make test_shell
ksh-ubuntu-latest:
name: ksh (ubuntu-latest)
runs-on: ubuntu-latest
env:
TEST_SHELL: ksh
steps:
- uses: actions/checkout@v2
- name: Run tests
run: |
sudo apt install -y ksh
make test_shell
ash-ubuntu-latest:
name: ash (ubuntu-latest)
runs-on: ubuntu-latest
env:
TEST_SHELL: ash
steps:
- uses: actions/checkout@v2
- name: Run tests
run: |
sudo apt install -y ash
make test_shell
zsh-ubuntu-latest:
name: zsh (ubuntu-latest)
runs-on: ubuntu-latest
env:
TEST_SHELL: zsh
steps:
- uses: actions/checkout@v2
- name: Run tests
run: |
sudo apt install -y zsh
make test_shell
bash-freebsd-latest:
name: bash (freebsd-latest)
runs-on: macos-10.15
env:
TEST_SHELL: bash
steps:
- uses: actions/checkout@v2
- name: Run tests
uses: vmactions/[email protected]
with:
usesh: true
prepare: pkg install -y bash
run: make test_shell
ksh-freebsd-latest:
name: ksh (freebsd-latest)
runs-on: macos-10.15
env:
TEST_SHELL: ksh
steps:
- uses: actions/checkout@v2
- name: Run tests
uses: vmactions/[email protected]
with:
usesh: true
run: make test_shell
zsh-freebsd-latest:
name: zsh (freebsd-latest)
runs-on: macos-10.15
env:
TEST_SHELL: zsh
steps:
- uses: actions/checkout@v2
- name: Run tests
uses: vmactions/[email protected]
with:
usesh: true
run: make test_shell
bash-mac-110:
name: bash (macos-11.0)
runs-on: macos-11.0
env:
TEST_SHELL: bash
EXPECT_ARCH: x86_64
EXPECT_CODENAME: big sur
EXPECT_DISTRO: macosx
EXPECT_INIT: launchd
EXPECT_KERNEL: darwin
EXPECT_RELEASE: '11.0'
steps:
- uses: actions/checkout@v2
- name: Run tests
run: make test_shell
ksh-mac-110:
name: ksh (macos-11.0)
runs-on: macos-11.0
env:
TEST_SHELL: ksh
EXPECT_ARCH: x86_64
EXPECT_CODENAME: big sur
EXPECT_DISTRO: macosx
EXPECT_INIT: launchd
EXPECT_KERNEL: darwin
EXPECT_RELEASE: '11.0'
steps:
- uses: actions/checkout@v2
- name: Run tests
run: make test_shell
zsh-mac-110:
name: zsh (macos-11.0)
runs-on: macos-11.0
env:
TEST_SHELL: zsh
EXPECT_ARCH: x86_64
EXPECT_CODENAME: big sur
EXPECT_DISTRO: macosx
EXPECT_INIT: launchd
EXPECT_KERNEL: darwin
EXPECT_RELEASE: '11.0'
steps:
- uses: actions/checkout@v2
- name: Run tests
run: make test_shell
bash-mac-latest:
name: bash (macos-latest)
runs-on: macos-latest
env:
TEST_SHELL: bash
steps:
- uses: actions/checkout@v2
- name: Run tests
run: make test_shell
ksh-mac-latest:
name: ksh (macos-latest)
runs-on: macos-latest
env:
TEST_SHELL: ksh
steps:
- uses: actions/checkout@v2
- name: Run tests
run: make test_shell
zsh-mac-latest:
name: zsh (macos-latest)
runs-on: macos-latest
env:
TEST_SHELL: zsh
steps:
- uses: actions/checkout@v2
- name: Run tests
run: make test_shell