-
Notifications
You must be signed in to change notification settings - Fork 0
78 lines (65 loc) · 1.82 KB
/
contracts.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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
name: Tests
on:
workflow_dispatch:
push:
branches: [main]
pull_request:
branches: [main]
paths: ["src/**", "test/**/**", ".github/workflows/contracts.yml"]
jobs:
test:
name: Contract-Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Install node
uses: actions/setup-node@v3
- name: Install node modules
run: |
cd lib/filecoin-solidity
npm install
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install solc-select
run: |
pip3 install solc-select
- name: Compile
run: |
forge build --build-info
solc-select install 0.8.17
solc-select use 0.8.17
- name: Run forge tests
run: forge test -vvv
- name: Patch foundry
run: rm foundry.toml
- name: Run Slither
uses: crytic/[email protected]
id: slither
with:
target: "src/PayoutFactory.sol"
fail-on: none
- name: Echidna Tests on PaymentSplitter
uses: crytic/echidna-action@v2
env:
SOLC_VERSION: 0.8.17
with:
solc-version: 0.8.17
files: test/echidna/PaymentSplitterTest.sol
contract: TestPaymentSplitter
crytic-args: --ignore-compile
- name: Echidna Tests on PayoutFactory
uses: crytic/echidna-action@v2
env:
SOLC_VERSION: 0.8.17
with:
solc-version: 0.8.17
files: test/echidna/PayoutFactoryTest.sol
contract: TestPayoutFactory
crytic-args: --ignore-compile