-
Notifications
You must be signed in to change notification settings - Fork 11
66 lines (53 loc) · 1.4 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
62
63
64
65
66
name: CI
on:
push:
branches: [main]
pull_request:
branches: ["*"]
jobs:
kzg_prover:
name: Check, test and fmt KZG prover
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./kzg_prover
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install rust stable toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- name: Install nextest
uses: taiki-e/install-action@v2
with:
tool: cargo-nextest
- name: Set up cargo cache
uses: Swatinem/rust-cache@v2
- name: Run cargo check
run: cargo check --workspace
- name: Run nextest
run: cargo nextest run --workspace --all-targets --no-fail-fast
- name: Run rustfmt
run: cargo fmt --all --check
- name: Run clippy
run: cargo clippy --workspace --all-targets
evm_bridge:
name: Build and test EVM bridge
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./evm_bridge
steps:
- name: Checkout sources
uses: actions/checkout@v4
- name: Install node
uses: actions/setup-node@v3
with:
node-version: latest
- name: Set up dependencies
run: npm ci
- name: Run npm build
run: npm run build
- name: Run npm test
run: npm run test