From 84de3b424c505d6efd25a4714800057e2b226324 Mon Sep 17 00:00:00 2001 From: 0xtekgrinder <0xtekgrinder@protonmail.com> Date: Mon, 8 Apr 2024 15:44:22 -0400 Subject: [PATCH] chore: setup repo before slither ci --- .github/workflows/ci.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index aec75c4c..a007b507 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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 @@ -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 @@ -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/slither-action@v0.3.0" + uses: "crytic/slither-action@v0.3.2" id: "slither" with: + ignore-compile: true fail-on: "none" sarif: "results.sarif" @@ -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 \ No newline at end of file