-
Notifications
You must be signed in to change notification settings - Fork 24
136 lines (133 loc) · 3.95 KB
/
rust.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
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
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
name: Rust tests
on:
push:
branches: [master]
pull_request:
branches: [master]
env:
CARGO_TERM_COLOR: always
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
- name: Check Rita and Rita Exit x86
run: cargo check --all
test:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
- name: Run Rita and Rita Exit tests
run: cargo test --verbose --all
rustfmt:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Check code formatting
run: rustup component add rustfmt && cargo fmt --all -- --check
clippy:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
- name: Check for Clippy lints
run: rustup component add clippy && cargo clippy --all --all-targets --all-features -- -D warnings
audit:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
- name: Run Cargo Audit
run: cargo install cargo-audit && cargo audit
cross-aarch64:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
- name: Cross test aarch64
run: cargo install cross && cross build --target aarch64-unknown-linux-musl --verbose -p rita_bin --bin rita
cross-armv7:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
- name: Cross test armv7
run: cargo install cross && cross build --target armv7-unknown-linux-musleabihf --verbose -p rita_bin --bin rita
integration-test-five-nodes:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Run integration test
run: bash scripts/integration_tests/all-up-test-ci.sh FIVE_NODES
integration-test-althea-payment:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Run integration test
run: bash scripts/integration_tests/all-up-test-ci.sh PAYMENTS_ALTHEA
integration-test-debts:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Run integration test
run: bash scripts/integration_tests/all-up-test-ci.sh DEBTS_TEST
integration-test-eth-payments:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Run integration test
run: bash scripts/integration_tests/all-up-test-ci.sh ETH_PAYMENTS
integration-test-multi-exit:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Run integration test
run: bash scripts/integration_tests/all-up-test-ci.sh MULTI_EXIT
integration-test-validate-contract:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Run integration test
run: bash scripts/integration_tests/all-up-test-ci.sh CONTRACT_TEST
integration-test-db-migration:
needs: check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: Swatinem/rust-cache@v2
with:
cache-on-failure: true
- name: Run integration test
run: bash scripts/integration_tests/all-up-test-ci.sh MIGRATION_TEST