-
Notifications
You must be signed in to change notification settings - Fork 2
36 lines (27 loc) · 815 Bytes
/
Copy pathcontract.yml
File metadata and controls
36 lines (27 loc) · 815 Bytes
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
name: Contract tests
on:
push:
branches: [main]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
round-contract:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: "contracts/round"
- uses: actions/setup-node@v4
with:
node-version: "22"
- name: Run round contract unit tests
run: cargo test -p sub-rosa-round
- name: Check ERRORS.md stays in sync with enum Error
run: node scripts/check-round-errors.mjs
- name: Run error drift script tests
run: node --test scripts/check-round-errors.test.mjs