-
Notifications
You must be signed in to change notification settings - Fork 15
62 lines (51 loc) · 1.45 KB
/
integration_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
name: Integration Tests
on:
push:
branches: [master]
pull_request:
workflow_dispatch:
env:
CARGO_REGISTRIES_CRATES_IO_PROTOCOL: git
RUST_LOG: "dkg=trace"
jobs:
# dkg-substrate integration tests
local_chain:
name: Local Chain Tests
runs-on: macos-latest
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}
- name: Checkout Code
uses: actions/checkout@v3
- name: Restore Cache
if: always()
uses: actions/cache/restore@v3
with:
path: |
~/.cargo/registry
target/release
target/debug
key: ${{ runner.os }}-cargo-index-${{ github.ref_name }}-local-chain-tests
- name: Install toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
- name: Install Protobuf and LLVM
run: brew install protobuf llvm
- name: Install cargo make
run: cargo install cargo-make
- name: Build Binary
run: cargo make build-test
- name: Run Tests
run: cargo make integration-tests
- name: Save Cache
if: ${{ !cancelled() }}
uses: actions/cache/save@v3
with:
path: |
~/.cargo/registry
target/release
target/debug
key: ${{ runner.os }}-cargo-index-${{ github.ref_name }}-local-chain-tests