-
Notifications
You must be signed in to change notification settings - Fork 11
59 lines (53 loc) · 1.67 KB
/
e2e.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
name: e2e
# Runs the CI end-to-end test network on all pushes to master or release branches
# and every pull request, but only if any Go files have been changed.
on:
workflow_dispatch: # allow running workflow manually
pull_request:
push:
branches:
- master
- release/**
jobs:
e2e-test:
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
testnet: [ "dashcore", "rotate" ]
timeout-minutes: 25
env:
FULLNODE_PUBKEY_KEEP: false
steps:
- uses: actions/setup-go@v3
with:
go-version: '1.17'
- uses: actions/checkout@v3
with:
submodules: true
- uses: technote-space/get-diff-action@v6
with:
PATTERNS: |
**/**.go
go.mod
go.sum
- uses: ./.github/actions/bls
name: Install BLS library
if: "env.GIT_DIFF != ''"
- name: Build
working-directory: test/e2e
# Run two make jobs in parallel, since we can't run steps in parallel.
run: make -j2 docker runner tests
if: "env.GIT_DIFF != ''"
- name: Run CI ${{ matrix.testnet }} testnet
working-directory: test/e2e
run: ./build/runner -f networks/${{ matrix.testnet }}.toml
if: "env.GIT_DIFF != ''"
- name: Emit ${{ matrix.testnet }} logs on failure
if: ${{ failure() }}
working-directory: test/e2e
run: ./build/runner -f networks/${{ matrix.testnet }}.toml logs
- name: Cleanup ${{ matrix.testnet }} configuration
working-directory: test/e2e
run: ./build/runner -f networks/${{ matrix.testnet }}.toml cleanup
if: "env.GIT_DIFF != ''"