-
Notifications
You must be signed in to change notification settings - Fork 3
87 lines (72 loc) · 1.94 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
name: Test
on: push
jobs:
test:
runs-on: ubuntu-24.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: 1.23.x
- name: setup-env
run: |
sudo apt remove bpfcc-tools
bash --version
uname -a
compgen -ac | sort | grep '^ex'
- run: make test
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.22.x
- uses: dominikh/[email protected]
with:
version: "2023.1"
install-go: false
test-alpine:
runs-on: ubuntu-latest
steps:
- name: Setup Alpine
uses: jirutka/setup-alpine@v1
with:
branch: latest-stable
- name: Setup Alpine dependencies
run: |
cat /etc/alpine-release
apk add git go make bash binutils-gold python3
shell: alpine.sh --root {0}
- name: Checkout
uses: actions/checkout@v2
- name: Run tests against ash
run: |
git config --global --add safe.directory /home/runner/work/shell-tester/shell-tester
# repo is owned by user and we intend to execute as root
make test_ash
shell: alpine.sh --root {0}
- name: Run tests against bash on alpine
run: |
make test
shell: alpine.sh --root {0}
test-flakiness:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.22.x
- name: setup-env
run: |
sudo apt remove bpfcc-tools
bash --version
uname -a
compgen -ac | sort | grep '^ex'
- run: TEST_TARGET=test_bash RUNS=25 make test_flakiness