-
Notifications
You must be signed in to change notification settings - Fork 2
79 lines (67 loc) · 2.39 KB
/
roadblock-ci.yaml
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
name: roadblock-ci
on:
pull_request:
branches: [ master ]
paths-ignore:
- LICENSE
- '**.md'
- .github/workflows/faux-crucible-ci.yaml
- .github/workflows/faux-roadblock-ci.yaml
- .github/workflows/faux-pylint.yaml
- 'docs/**'
workflow_dispatch:
concurrency:
group: ${{ github.ref }}/roadblock-ci
cancel-in-progress: true
jobs:
roadblock-ci-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
tests:
- name: "Run small roadblock test"
args: "--followers 5"
- name: "Run roadblock timeout test"
args: "--followers 5 --timeout"
- name: "Run roadblock abort test"
args: "--followers 5 --abort"
- name: "Run large roadblock test"
args: "--followers 50"
- name: "Run wait-for test"
args: "--followers 5 --wait-for"
- name: "Run wait-for heartbeat timeout test"
args: "--followers 5 --wait-for-heartbeat-timeout"
- name: "Run wait-for abort test"
args: "--followers 5 --wait-for-abort"
- name: "Run 1 Leader SIGINT (abort) test"
args: "--followers 5 --leader-sigints 1"
- name: "Run 2 Leader SIGINT (exit) test"
args: "--followers 5 --leader-sigints 2"
steps:
- name: Matrix Parameters => ("${{ matrix.tests.name }}", "${{ matrix.tests.args }}")
run: |
echo "name=\"${{ matrix.tests.name }}\""
echo "args=\"${{ matrix.tests.args }}\""
- uses: actions/checkout@v3
- name: Install test dependencies
run: |
. /etc/os-release
echo "deb https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/ /" | sudo tee /etc/apt/sources.list.d/devel:kubic:libcontainers:stable.list
curl -L "https://download.opensuse.org/repositories/devel:/kubic:/libcontainers:/stable/xUbuntu_${VERSION_ID}/Release.key" | sudo apt-key add -
sudo apt-get -y update
sudo apt-get -y install podman
sudo apt-get -y install buildah
- name: Build roadblock container
run: |
sudo ./test/build-container.sh
- name: ${{ matrix.tests.name }}
run: |
sudo ./test/run-test.sh ${{ matrix.tests.args }}
roadblock-ci-complete:
runs-on: ubuntu-latest
needs:
- roadblock-ci-tests
steps:
- name: Confirm Success
run: echo "roadblock-ci-complete"