-
Notifications
You must be signed in to change notification settings - Fork 43
42 lines (35 loc) · 1.26 KB
/
run_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
on:
push:
branches:
- main
pull_request:
name: tests
jobs:
check:
name: Run All Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- uses: actions/setup-node@v3
with:
node-version: 16.15.1
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
with:
version: nightly
- name: Run Fuzzed Unit Tests
run: forge test --no-match-path src/test/StandardInput.t.sol --fuzz-runs 10000
- name: Run Murky Differential Tests
run: |
npm --prefix differential_testing/scripts/ install
npm --prefix differential_testing/scripts/ run compile
forge test --ffi --contracts differential_testing/test/DifferentialTests.t.sol --fuzz-runs 512
- name: Run Complete Differential Tests
run: |
npm --prefix differential_testing/scripts/ install
npm --prefix differential_testing/scripts/ run compile
forge test --ffi --contracts differential_testing/test/CompleteDifferentialTests.t.sol --fuzz-runs 512
- name: Run Standard Gas Snapshotting
run: forge snapshot --gas-report --ffi --match-path src/test/StandardInput.t.sol