From dacef44a4d89d6b4115dba9af0d0fb0f62cbf344 Mon Sep 17 00:00:00 2001 From: adam-alchemy <127769144+adam-alchemy@users.noreply.github.com> Date: Thu, 14 Dec 2023 15:04:35 -0800 Subject: [PATCH] fix: Reorder CI elements to run `forge fmt` on the correct code (#21) --- .github/workflows/test.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2d39989cd..a45ada406 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -17,9 +17,6 @@ jobs: uses: foundry-rs/foundry-toolchain@v1 with: version: nightly-5be158ba6dc7c798a6f032026fe60fc01686b33b - - run: forge install - - - run: forge fmt --check - name: "Check out the repo" uses: "actions/checkout@v3" @@ -43,6 +40,10 @@ jobs: - name: "Install the Node.js dependencies" run: "pnpm install" + - run: forge install + + - run: forge fmt --check + - name: "Lint the contracts" run: "pnpm lint"