Skip to content

Commit

Permalink
chore: setup repo before slither ci
Browse files Browse the repository at this point in the history
  • Loading branch information
0xtekgrinder committed Apr 10, 2024
1 parent 63a48fb commit 84de3b4
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ jobs:
with:
registry-token: ${{ secrets.GH_REGISTRY_ACCESS_TOKEN }}

- name: Install dependencies
run: yarn install

- name: Run solhint
run: yarn lint:check

Expand All @@ -51,6 +54,9 @@ jobs:
with:
registry-token: ${{ secrets.GH_REGISTRY_ACCESS_TOKEN }}

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Compile foundry
run: yarn compile --sizes

Expand Down Expand Up @@ -220,10 +226,14 @@ jobs:
with:
version: nightly

- name: Compile foundry
run: forge build --build-info --skip */test/** */scripts/** --force

- name: "Run Slither analysis"
uses: "crytic/[email protected].0"
uses: "crytic/[email protected].2"
id: "slither"
with:
ignore-compile: true
fail-on: "none"
sarif: "results.sarif"

Expand All @@ -235,4 +245,4 @@ jobs:
- name: "Add Slither summary"
run: |
echo "## Slither result" >> $GITHUB_STEP_SUMMARY
echo "✅ Uploaded to GitHub code scanning" >> $GITHUB_STEP_SUMMARY
echo "✅ Uploaded to GitHub code scanning" >> $GITHUB_STEP_SUMMARY

0 comments on commit 84de3b4

Please sign in to comment.