-
Notifications
You must be signed in to change notification settings - Fork 12
51 lines (41 loc) · 1.15 KB
/
tests.yml
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
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
timeout-minutes: 30
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
- 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
# skip this in favour of compiling in the `Test` action.
# - name: Check
# run: cargo check --all
- name: Test
run: RUST_LOG="lightclient-circuits=debug" PARAMS_DIR="./test_data" cargo test --release test_eth2_spec_mock_1 -- --nocapture