forked from strangelove-ventures/horcrux
-
Notifications
You must be signed in to change notification settings - Fork 0
68 lines (60 loc) · 1.56 KB
/
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
name: Tests
on:
pull_request:
push:
branches:
- main
paths:
- '**.go'
- '**.mod'
- '**.sum'
- '**.proto'
- 'Makefile'
jobs:
unit:
runs-on: ubuntu-latest
steps:
# Install and setup go
- name: Set up Go 1.19
uses: actions/setup-go@v4
with:
go-version: '^1.19'
# checkout horcrux
- name: checkout horcrux
uses: actions/checkout@v3
# make sure proto files are up to date
- name: generate fresh signer proto .go files
run: make signer-proto
# run tests
- name: run horcrux tests
run: make test
e2e:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
test:
- TestMultipleChainHorcrux
- TestChainPureHorcrux
- TestDownedSigners2of3
- TestDownedSigners3of5
- TestLeaderElection2of3
- Test2Of3SignerThreeSentries
- Test2Of3SignerThreeSentriesUniqueConnection
- TestUpgradeValidatorToHorcrux
- TestSingleSignerTwoSentries
steps:
# Install and setup go
- name: Set up Go 1.20
uses: actions/setup-go@v4
with:
go-version: '^1.20.0'
# checkout horcrux
- name: checkout horcrux
uses: actions/checkout@v3
# make sure proto files are up to date
- name: generate fresh signer proto .go files
run: make signer-proto
# run test matrix
- name: run test
run: cd test && go test -v -timeout 30m -run ^${{ matrix.test }}$ .