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 - name: Install node
23 uses: actions/setup-node@v1
24 with:
25 node-version: 10
26
27 - name: Install ganache
28 run: npm install -g ganache-cli
29
30 - name: Install Solc
31 run: |
32 mkdir -p "$HOME/bin"
33 wget -q https://github.com/ethereum/solidity/releases/download/v0.7.6/solc-static-linux -O $HOME/bin/solc
34 chmod u+x "$HOME/bin/solc"
35 export PATH=$HOME/bin:$PATH
36 solc --version
37
38 - name: cargo test
39 run: |
40 export PATH=$HOME/bin:$PATH
41 cargo test
42
43 lint:
44 runs-on: ubuntu-latest
45 steps:
46 - name: Checkout sources
47 uses: actions/checkout@v2
48 - name: Install stable toolchain
49 uses: actions-rs/toolchain@v1
50 with:
51 profile: minimal
52 toolchain: stable
53 override: true
54 components: rustfmt, clippy
55 - name: cargo fmt
56 run: cargo fmt --all -- --check
57 - name: cargo clippy
58 run: cargo clippy -- -D warnings