forked from Cylo-Traders/Agrocylo-PIP
-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (36 loc) · 901 Bytes
/
Copy pathcontracts.yml
File metadata and controls
45 lines (36 loc) · 901 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
37
38
39
40
41
42
43
44
45
name: Contracts
on:
push:
branches: [master]
paths:
- "contracts/**"
pull_request:
branches: [master]
paths:
- "contracts/**"
env:
CARGO_TERM_COLOR: always
jobs:
build-and-test:
runs-on: ubuntu-latest
defaults:
run:
working-directory: contracts
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- name: Cache cargo
uses: Swatinem/rust-cache@v2
with:
workspaces: contracts
- name: Build (release)
run: cargo build --target wasm32-unknown-unknown --release
- name: Run tests
run: cargo test
- name: Property-based tests (escrow invariants)
env:
PROPTEST_CASES: 1000
run: cargo test -p production_escrow proptest