forked from dedis/d-voting
-
Notifications
You must be signed in to change notification settings - Fork 1
70 lines (60 loc) · 1.69 KB
/
go_integration_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
name: Go Integration Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
integration:
name: Integration test
runs-on: ubuntu-latest
steps:
- name: Use Go 1.20
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Run the integration test
run: go test -timeout 10m -run TestIntegration ./integration/...
bad_vote:
name: Test bad vote
runs-on: ubuntu-latest
steps:
- name: Use Go 1.20
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Run the bad vote test
run: go test -timeout 10m -run TestBadVote ./integration/...
crash:
name: Test crash
runs-on: ubuntu-latest
steps:
- name: Use Go 1.20
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Run the crash test
run: |
for a in $( seq 3 ); do
echo "Testing sequence $a"
go test -timeout 10m -run TestCrash ./integration/... && exit 0
done
exit 1
revote:
name: Test revote
runs-on: ubuntu-latest
steps:
- name: Use Go 1.20
uses: actions/setup-go@v4
with:
go-version: '1.20'
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Run the revote test
run: go test -timeout 10m -run TestRevote ./integration/...