-
Notifications
You must be signed in to change notification settings - Fork 9
56 lines (45 loc) · 1.23 KB
/
fuzz.yml
File metadata and controls
56 lines (45 loc) · 1.23 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
51
52
53
54
55
56
name: Fuzz test smart contracts
on:
workflow_dispatch:
push:
branches:
- QA-Test
- Stable-Test
- master
- "v*.*.*"
pull_request:
branches:
- QA-Test
- Stable-Test
- master
- "v*.*.*"
permissions:
contents: read
packages: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Use Node.js 20.15.1
uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4
with:
node-version: "20.15.1"
- name: NPM Login
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm config set //npm.pkg.github.com/:_authToken $GITHUB_TOKEN
- name: Install dependencies
run: npm ci
- name: "Install Foundry"
uses: "foundry-rs/foundry-toolchain@50d5a8956f2e319df19e6b57539d7e2acb9f8c1e" # v1.5.0
with:
version: stable
- name: Lint contracts
run: npm run lint:sol
- name: Compile contracts
run: npm run compile
- name: Fuzz test smart contracts
run: npm run test:fuzz
- name: Invariant test smart contracts
run: npm run test:invariant