circom-compat/.github/workflows/ci.yml
.github/workflows/ci.ymlRaw
1on:
2 push:
3 branches:
4 - master
5 pull_request:
6
7name: Tests
8
9jobs:
10 tests:
11 runs-on: ubuntu-latest
12 steps:
13 - name: Checkout sources
14 uses: actions/checkout@v2
15 - name: Install stable toolchain
16 uses: actions-rs/toolchain@v1
17 with:
18 profile: minimal
19 toolchain: stable
20 override: true
21
22 # Install for Anvil
23 - name: Install Foundry
24 uses: foundry-rs/foundry-toolchain@v1
25 with:
26 version: nightly
27
28 - uses: Swatinem/rust-cache@v1
29 with:
30 cache-on-failure: true
31
32 - name: cargo test
33 run: |
34 export PATH=$HOME/bin:$PATH
35 cargo test
36
37 - name: cargo test circom 2 feature flag
38 run: |
39 export PATH=$HOME/bin:$PATH
40 cargo test --features circom-2
41
42 lint:
43 runs-on: ubuntu-latest
44 steps:
45 - name: Checkout sources
46 uses: actions/checkout@v2
47 - name: Install stable toolchain
48 uses: actions-rs/toolchain@v1
49 with:
50 profile: minimal
51 toolchain: stable
52 override: true
53 components: rustfmt, clippy
54 - name: cargo fmt
55 run: cargo fmt --all -- --check
56 - name: cargo clippy
57 run: cargo clippy -- -D warnings