Skip to content

Add feature gating for slow tests and cache SRS using git LFS #158

Add feature gating for slow tests and cache SRS using git LFS

Add feature gating for slow tests and cache SRS using git LFS #158

Workflow file for this run

name: Tests
on:
pull_request:
branches:
- main
push:
branches:
- main
env:
CI: 1
CARGO_INCREMENTAL: 1
jobs:
test:
name: build-and-test
runs-on: ubuntu-latest
steps:
- name: Give GitHub Actions access to sygmaprotocol/zipline
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SYGMA_REPO_PULL_KEY }}
- uses: actions/checkout@v3
with:
lfs: true
- name: Checkout LFS objects # used for structured reference strings for tests (.srs files)
run: git lfs checkout
- name: Install latest nightly-2022-10-28
uses: dtolnay/rust-toolchain@stable
with:
toolchain: nightly-2022-10-28
override: true
components: rustfmt
- name: Install just
uses: extractions/setup-just@v1
- name: Download consensus spec
run: just download-spec-tests
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Build contracts
run: just build-contracts
- name: Test
run: RUST_LOG="lightclient-circuits=debug" FLEX_SHA_SPREAD_COLUMNS=2 cargo test --release -- --nocapture