Skip to content

Commit

Permalink
🚨 Only build src for Slither
Browse files Browse the repository at this point in the history
  • Loading branch information
davisshaver committed Sep 14, 2024
1 parent 0b0df22 commit e1ab6c9
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .github/workflows/forge-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ jobs:
env:
INFURA_API_KEY: ${{ secrets.INFURA_API_KEY }}

- run: yarn build
- run: yarn clean

- run: yarn build:slither

- name: Run Slither
uses: crytic/[email protected]
Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@
},
"scripts": {
"build:with-ir": "forge build --extra-output ir",
"build": "forge build --build-info",
"build": "forge build",
"build:slither": "forge build --build-info --skip */test/** */script/** --force",
"chain": "anvil --fork-url https://mainnet.infura.io/v3/$INFURA_API_KEY",
"clean": "forge clean",
"generate-ir": "cat ./out/ProtoGravaNFT.sol/ProtoGravaNFT.json | jq -r .ir | perl -pe 's/\\n/\n/g' > ./out/ir.sol",
"lint:check": "yarn prettier:check && yarn solhint:check",
"lint": "yarn prettier && yarn solhint",
Expand Down

0 comments on commit e1ab6c9

Please sign in to comment.