Repository navigation
110 lines (94 loc) · 2.86 KB
/
Copy pathintegration-tests.yml
File metadata and controls
110 lines (94 loc) · 2.86 KB
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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
name: Integration tests
on:
push:
branches: [ master, dev ]
pull_request:
branches: [ master, dev ]
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Install minimal stable
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Install dependencies
run: sudo apt-get install clang protobuf-compiler
- name: Build
run: cargo build --features service_debug
- name: Run integration tests
run: ./tests/integration-tests.sh
shell: bash
test-consensus:
runs-on: ubuntu-latest
steps:
- name: Install minimal stable
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Install dependencies
run: sudo apt-get install clang protobuf-compiler
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install pytest
run: pip install pytest requests
- name: Build
run: cargo build --features service_debug
- name: Run integration tests - 1 peer
run: ./tests/integration-tests.sh distributed
shell: bash
- name: Run integration tests - multiple peers - pytest
run: pytest ./tests/consensus_tests
- name: upload logs in case of failure
uses: actions/upload-artifact@v3
if: failure()
with:
name: consensus-test-logs
retention-days: 90 # default max value
path: consensus_test_logs
test-consensus-compose:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install requests python lib
run: pip install requests
- name: Run integration tests - multiple peers - compose
run: ./test_restart.sh
working-directory: ./tests/consensus_tests
test-tls-compose:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Run integration tests
run: ./test_tls.sh
working-directory: ./tests/tls
test-consistency:
runs-on: ubuntu-latest
steps:
- name: Install minimal stable
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- uses: actions/checkout@v3
- uses: Swatinem/rust-cache@v2
- name: Install Protoc
uses: arduino/setup-protoc@v1
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
- name: gRPC file consistency check
run: ./tests/grpc_consistency_check.sh
- name: OpenAPI file consistency check
run: ./tests/openapi_consistency_check.sh