From 1ab2a33f191fa60f19353f7c706b2e9e9a80c643 Mon Sep 17 00:00:00 2001 From: sam bacha Date: Sun, 3 Sep 2023 09:50:46 -0700 Subject: [PATCH] ci(forge): fix failing workflow The previous commit saw a CI failure due to not having `--tolerance` specified. I took the difference and rounded up (~2.64% difference in gas snapshot to the value of 3). Also updated the foundry tool chain to the appropriate repo, and updated checkout to use v3. --- .github/workflows/tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 2a298901..b1c587a4 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -6,10 +6,10 @@ jobs: tests: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 - name: Install Foundry - uses: onbjerg/foundry-toolchain@v1 + uses: foundry-rs/foundry-toolchain@v1 with: version: nightly @@ -20,7 +20,7 @@ jobs: run: forge build --sizes - name: Check gas snapshots - run: forge snapshot --check + run: forge snapshot --check --tolerance 3 - name: Run tests run: forge test