forked from soterika/aura-vault-protocol
-
Notifications
You must be signed in to change notification settings - Fork 0
50 lines (41 loc) · 1.3 KB
/
Copy pathfuzz-test.yml
File metadata and controls
50 lines (41 loc) · 1.3 KB
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
name: Fuzz Testing
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
schedule:
- cron: '0 2 * * *' # Daily at 2 AM UTC
jobs:
fuzz:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: dtolnay/rust-toolchain@stable
with:
targets: wasm32-unknown-unknown
- uses: Swatinem/rust-cache@v2
- name: Run property tests (1000+ transactions)
working-directory: ./aura-vault
run: |
PROPTEST_CASES=1000 \
PROPTEST_MAX_SHRINK_ITERS=100000 \
cargo test --lib fuzz -- --nocapture --test-threads=1
- name: Run invariant checks
working-directory: ./aura-vault
run: cargo test --lib invariants -- --nocapture
- name: Run full test suite
working-directory: ./aura-vault
run: cargo test --lib
- name: Generate coverage report
working-directory: ./aura-vault
continue-on-error: true
run: |
cargo install cargo-tarpaulin
cargo tarpaulin --lib --out Html --output-dir coverage
- name: Upload coverage
uses: actions/upload-artifact@v3
if: always()
with:
name: coverage-report
path: aura-vault/coverage/