Skip to content

Testing

Testing #139

Workflow file for this run

on:
push:
branches:
- master
pull_request:
name: Tests
jobs:
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
# Install for Anvil
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- uses: Swatinem/rust-cache@v1
with:
cache-on-failure: true
- name: cargo test
run: |
export PATH=$HOME/bin:$PATH
cargo test --workspace --exclude witness::witness_calculator::tests::smt_verifier
- name: cargo test smt_verifier
run: |
export PATH=$HOME/bin:$PATH
cargo test --tests witness::witness_calculator::tests::smt_verifier
- name: cargo test circom 2 feature flag
run: |
export PATH=$HOME/bin:$PATH
cargo test --features circom-2
tests_macos:
runs-on: macos-latest
steps:
- name: Checkout sources
uses: actions/checkout@v2
- name: Install stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
override: true
# Install for Anvil
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- uses: Swatinem/rust-cache@v1
with:
cache-on-failure: true
- name: cargo test
run: |
export PATH=$HOME/bin:$PATH
cargo test --workspace --exclude witness::witness_calculator::tests::smt_verifier
- name: cargo test smt_verifier
run: |
export PATH=$HOME/bin:$PATH
cargo test --tests witness::witness_calculator::tests::smt_verifier
- name: cargo test circom 2 feature flag
run: |
export PATH=$HOME/bin:$PATH
cargo test --features circom-2
# lint:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout sources
# uses: actions/checkout@v2
# - name: Install stable toolchain
# uses: actions-rs/toolchain@v1
# with:
# profile: minimal
# toolchain: stable
# override: true
# components: rustfmt, clippy
# - name: cargo fmt
# run: cargo fmt --all -- --check
# - name: cargo clippy
# run: cargo clippy -- -D warnings