-
Notifications
You must be signed in to change notification settings - Fork 3
61 lines (48 loc) · 1.27 KB
/
ci.yaml
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
on:
push:
branches:
- master
pull_request:
name: rosetta-wallet
jobs:
rustfmt:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install rust toolchain
uses: hecrj/setup-rust-action@v1
with:
components: rustfmt
- name: cargo fmt
run: cargo fmt --all -- --check
clippy:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- name: Install rust toolchain
uses: hecrj/setup-rust-action@v1
with:
components: clippy
- name: cargo clippy
run: cargo clippy --workspace --examples --tests --all-features -- -D warnings
test:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v3
- run: sudo add-apt-repository ppa:ethereum/ethereum
- run: sudo apt-get update
- name: Install deps
run: sudo apt-get install musl-dev musl-tools solc
- name: Install rust toolchain
uses: hecrj/setup-rust-action@v1
with:
targets: x86_64-unknown-linux-musl
- name: Build connectors
run: ./build_connectors.sh
- name: Pull nodes
run: ./pull_nodes.sh
- name: cargo test
run: cargo test --all-features --workspace