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 af908aa
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 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,12 +226,17 @@ 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"
slither-version: "0.10.1"

- name: "Upload SARIF file to GitHub code scanning"
uses: "github/codeql-action/upload-sarif@v2"
Expand All @@ -235,4 +246,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 af908aa

Please sign in to comment.