-
Notifications
You must be signed in to change notification settings - Fork 11
76 lines (63 loc) · 1.85 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
67
68
69
70
71
72
73
74
75
76
name: CI
on:
push:
branches: [main]
pull_request:
branches: ["*"]
jobs:
kzg_prover:
name: KZG Prover
uses: ./.github/workflows/rust_ci.yaml
with:
directory: kzg_prover
skip_run: true
public_input_gen:
name: Public input generation
uses: ./.github/workflows/rust_ci.yaml
with:
directory: public_input_gen
verify_circuit_tests:
name: Verifying circuit Rust tests
uses: ./.github/workflows/rust_ci.yaml
with:
directory: verify_circuit_tests
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: Install rust toolchain for Mina monorepo
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly-2022-09-12-x86_64-unknown-linux-gnu
- name: Cache opam packages
uses: actions/cache@v3
with:
key: opam
path: /home/runner/.opam
- name: Clone Mina monorepo and set commit env var
run: |
git clone https://github.com/lambdaclass/mina_monorepo.git
cd mina_monorepo
echo "MINA_COMMIT=$(git rev-parse HEAD)" >> $GITHUB_ENV
- name: Cache Mina monorepo packages
uses: actions/cache@v3
with:
key: mina_monorepo-${{ env.MINA_COMMIT }}
path: /home/runner/work/mina_bridge/mina_bridge/mina_monorepo
- name: Install opam dependencies
run: sudo apt-get install opam liblmdb-dev && opam init
- name: Set up dependencies
run: npm ci
- name: Run npm build
run: npm run build
- name: Run npm test
run: npm run test