From e60ee513afab2957b8dfaf20ba07a049bd904c65 Mon Sep 17 00:00:00 2001 From: 0xtekgrinder <0xtekgrinder@protonmail.com> Date: Fri, 3 Nov 2023 09:31:28 -0400 Subject: [PATCH] chore: try to put explicit compilation in slither ci --- .github/workflows/ci.yml | 14 +++++--------- slither.config.json | 1 + 2 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ab95b2..a3e24d6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,10 +10,6 @@ on: branches: - "main" -defaults: - run: - shell: bash - jobs: lint: runs-on: ubuntu-latest @@ -147,7 +143,7 @@ jobs: version: nightly - name: Run Foundry tests - run: yarn test:fuzz + run: npm run test:fuzz env: FOUNDRY_FUZZ_RUNS: "5000" @@ -185,7 +181,6 @@ jobs: echo "✅ Uploaded to Codecov" >> $GITHUB_STEP_SUMMARY slither-analyze: - needs: ["build", "lint"] runs-on: "ubuntu-latest" permissions: actions: "read" @@ -202,9 +197,10 @@ jobs: version: nightly - name: Compile foundry - run: | - forge clean - forge build --build-info --skip */test/** */scripts/** --force + run: forge build --build-info --skip */test/** */scripts/** --force + + - name: See output + run: ls -la out - name: "Run Slither analysis" uses: "crytic/slither-action@v0.3.0" diff --git a/slither.config.json b/slither.config.json index f3f771e..8773964 100644 --- a/slither.config.json +++ b/slither.config.json @@ -1,4 +1,5 @@ { + "detectors_to_exclude": "naming-convention,reentrancy-events,solc-version,timestamp", "filter_paths": "(lib|test|external)", "solc_remaps": [ "ds-test/=lib/ds-test/src/",