-
Notifications
You must be signed in to change notification settings - Fork 5
77 lines (62 loc) · 1.62 KB
/
ci.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
name: CI
env:
PRIVATE_KEY: '0xafdfd9c3d2095ef696594f6cedcae59e72dcd697e2a7521b1578140422a4f890' # This is a test private key
HUB_URL: "https://testnet.hub.snapshot.org/graphql"
SUBGRAPH_URL: "https://api.thegraph.com/subgraphs/name/snapshot-labs/boost-sepolia"
BOOST_NAME: "boost"
BOOST_VERSION: "1"
VERIFYING_CONTRACT: "0x3a18420C0646CC8e6D46E43d792335AeCB657fd0"
# This workflow run tests and build for each push
on:
push:
branches:
- main
- master
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Update local toolchain
run: |
rustup update
rustup component add clippy
- name: Toolchain info
run: |
cargo --version --verbose
rustc --version
cargo clippy --version
- name: Lint
run: |
cargo fmt -- --check
cargo clippy -- -D warnings -D clippy::perf
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Update local toolchain
run: |
rustup update
- name: Toolchain info
run: |
cargo --version --verbose
rustc --version
- name: Test
run: |
cargo check
cargo test --all
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Update local toolchain
run: |
rustup update
- name: Toolchain info
run: |
cargo --version --verbose
rustc --version
- name: Build
run: |
cargo build