forked from dedis/d-voting
-
Notifications
You must be signed in to change notification settings - Fork 1
45 lines (35 loc) · 1.04 KB
/
go_dvoting_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
name: Dvoting (CLI+HTTP) Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Scenario
runs-on: ubuntu-latest
steps:
- name: Set up Go ^1.17
uses: actions/setup-go@v2
with:
go-version: ^1.17
- name: Install crypto util from Dela
run: |
git clone https://github.com/c4dt/dela.git
cd dela
go install ./cli/crypto
- name: Check out code into the Go module directory
uses: actions/checkout@v2
- name: Create a private key
run: crypto bls signer new --save private.key
- name: Install dvoting
run: make build
- name: Start 3 nodes
run: |
./dvoting --config /tmp/node1 start --port 2001 &
./dvoting --config /tmp/node2 start --port 2002 &
./dvoting --config /tmp/node3 start --port 2003 &
- name: Run the setup
run: ./setup.sh
- name: Run the scenario test
run: ./dvoting --config /tmp/node1 e-voting scenarioTest