forked from interlay/interbtc-clients
-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (71 loc) · 2.24 KB
/
cargo-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
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
name: Continuous integration
permissions:
contents: read
on: [pull_request, push]
jobs:
test:
name: Test Suite
runs-on: [self-hosted, linux]
strategy:
matrix:
metadata:
- parachain-metadata-interlay
- parachain-metadata-kintsugi
- parachain-metadata-testnet
- standalone-metadata
steps:
- uses: actions/checkout@v2
- run: git fetch --prune --unshallow
- name: Install System Dependencies
run: |
sudo apt-get update && sudo apt-get install -y \
cmake pkg-config libssl-dev git clang curl libc6-dev
- name: Set variables
run: |
echo "TOOLCHAIN=$(rustup show active-toolchain | cut -d " " -f1)" >> $GITHUB_ENV
- uses: actions-rs/toolchain@v1
with:
toolchain: ${{ env.TOOLCHAIN }}
override: true
components: rustfmt
- name: fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- run: rustup component add clippy
- name: clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --release --workspace --features ${{ matrix.metadata }}
- name: check
uses: actions-rs/cargo@v1
with:
command: check
args: --release --workspace --features ${{ matrix.metadata }}
- name: test
uses: actions-rs/cargo@v1
env:
RUST_LOG: info,regalloc=warn
with:
command: test
args: --release --workspace --features ${{ matrix.metadata }}
- name: upload artifacts - vault
uses: actions/upload-artifact@v2
with:
name: vault-${{ matrix.metadata }}-${{ github.sha }}
path: target/release/vault
retention-days: 10
- name: upload artifacts - oracle
uses: actions/upload-artifact@v2
with:
name: oracle-${{ matrix.metadata }}-${{ github.sha }}
path: target/release/oracle
retention-days: 10
- name: upload artifacts - faucet
uses: actions/upload-artifact@v2
with:
name: faucet-${{ matrix.metadata }}-${{ github.sha }}
path: target/release/faucet
retention-days: 10