Skip to content

Commit 1b49fab

Browse files
authored
Merge pull request #27 from crytic/add-erc721-to-ci
Add ERC721 examples to the CI
2 parents 5714a81 + 13d21af commit 1b49fab

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/examples.yaml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,28 @@ jobs:
4848
crytic-args: --ignore-compile
4949
contract: CryticERC20ExternalHarness
5050

51+
- name: Compile ERC721 Foundry example
52+
working-directory: tests/ERC721/foundry
53+
run: forge build --build-info
54+
55+
- name: Run Echidna against ERC721 Internal Foundry example
56+
uses: crytic/echidna-action@v2
57+
with:
58+
echidna-workdir: ./tests/ERC721/foundry
59+
files: .
60+
config: ./echidna-config.yaml
61+
crytic-args: --ignore-compile
62+
contract: CryticERC721InternalHarness
63+
64+
- name: Run Echidna against ERC721 External Foundry example
65+
uses: crytic/echidna-action@v2
66+
with:
67+
echidna-workdir: ./tests/ERC721/foundry
68+
files: .
69+
config: ./echidna-config-ext.yaml
70+
crytic-args: --ignore-compile
71+
contract: CryticERC721ExternalHarness
72+
5173
- name: Compile ERC4646 Foundry example
5274
working-directory: tests/ERC4626/foundry
5375
run: forge build --build-info
@@ -99,6 +121,30 @@ jobs:
99121
crytic-args: --ignore-compile
100122
contract: CryticERC20ExternalHarness
101123

124+
- name: Install dependencies and compile ERC721 example
125+
working-directory: tests/ERC721/hardhat
126+
run: |
127+
npm ci
128+
npx hardhat compile --force
129+
130+
- name: Run Echidna for Internal tests
131+
uses: crytic/echidna-action@v2
132+
with:
133+
echidna-workdir: ./tests/ERC721/hardhat
134+
files: .
135+
config: ./tests/echidna-config.yaml
136+
crytic-args: --ignore-compile
137+
contract: CryticERC721InternalHarness
138+
139+
- name: Run Echidna for External tests
140+
uses: crytic/echidna-action@v2
141+
with:
142+
echidna-workdir: ./tests/ERC721/hardhat
143+
files: .
144+
config: ./tests/echidna-config-ext.yaml
145+
crytic-args: --ignore-compile
146+
contract: CryticERC721ExternalHarness
147+
102148
- name: Install dependencies and compile ERC4626 example
103149
working-directory: tests/ERC4626/hardhat
104150
run: |

0 commit comments

Comments
 (0)