-
Notifications
You must be signed in to change notification settings - Fork 11
145 lines (132 loc) · 3.41 KB
/
test.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
name: Test
on:
push:
branches:
- '*'
pull_request:
branches:
- '*'
jobs:
test:
name: Test on ${{ matrix.os }} with ${{ matrix.update_alternatives }} update-alternatives
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-24.04
- macos-12
- windows-2022
update_alternatives:
- y
- n
steps:
- name: Check out code
uses: actions/checkout@v1
- name: Test
env:
GETMICRO_REGISTER: ${{ matrix.update_alternatives }}
run: ./ci/runTest.sh
shell: bash
lint:
name: Lint
runs-on: ubuntu-24.04
steps:
- name: Check out code
uses: actions/checkout@v1
- name: Lint
run: |
command -v apt-get >/dev/null 2>&1 && sudo apt-get update && sudo apt-get install -y shellcheck
# Ignore echo vs printf warning for cross-shell compatibility
export SHELLCHECK_OPTS="-e SC2028"
./ci/runLint.sh
# disabled for now; GH actions no longer supports Vagrant. Will likely need
# to move to qemu or similar.
#
# test_vagrant:
# name: Test ${{ matrix.vagrant_dir }} with Vagrant
# runs-on: macos-12
# strategy:
# fail-fast: false
# matrix:
# vagrant_dir:
# - testboxes/freebsd32
# - testboxes/freebsd64
# - testboxes/debian32
# - testboxes/debian64
# - testboxes/linux-arm64
# - testboxes/opensuse64
# - testboxes/devuan64
# - testboxes/netbsd64
# - testboxes/openbsd64
# steps:
# - name: Check out code
# uses: actions/checkout@v1
# - name: Test
# run: ./ci/runVagrantTest.sh ${{ matrix.vagrant_dir }}
test_docker:
name: Test ${{ matrix.docker_image }} with ${{ matrix.update_alternatives }} update-alternatives
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
docker_image:
- arm32v7/ubuntu:bionic
- arm64v8/ubuntu:bionic
- bash:5.0
- bash:4.4
- bash:4.3
- bash:4.2
- bash:4.1
- bash:4.0
- bash:3.2
- bash:3.1
- bash:3.0
update_alternatives:
- y
- n
steps:
- name: Check out code
uses: actions/checkout@v1
- name: Test
env:
GETMICRO_REGISTER: ${{ matrix.update_alternatives }}
run: ./ci/runDockerTest.sh ${{ matrix.docker_image }} bash
test_shells:
name: Test ${{ matrix.shell }} shell with ${{ matrix.update_alternatives }} update-alternatives
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
shell:
- zsh
- dash
- ksh
- mksh
- yash
- 'busybox sh'
- gash
update_alternatives:
- y
- n
steps:
- name: Check out code
uses: actions/checkout@v1
- name: Test
run: sudo GETMICRO_REGISTER=${{ matrix.update_alternatives }} ./ci/installAltShell.sh ${{ matrix.shell }}
test_alpine:
name: Test busybox on alpine with ${{ matrix.update_alternatives }} update-alternatives
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
update_alternatives:
- y
- n
steps:
- name: Check out code
uses: actions/checkout@v1
- name: Test
env:
GETMICRO_REGISTER: ${{ matrix.update_alternatives }}
run: ./ci/runDockerTest.sh alpine:latest sh