From 25c81c3f3f316447d3d27bf80996894797720e0b Mon Sep 17 00:00:00 2001 From: byshape Date: Wed, 3 Jan 2024 12:26:09 +0000 Subject: [PATCH] Added GitHub action for foundry tests --- .github/workflows/test.yml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f204761..225b0f8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -38,3 +38,31 @@ jobs: - run: yarn - run: yarn coverage - uses: codecov/codecov-action@v3 + + foundry: + name: Foundry project + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + with: + submodules: recursive + - uses: actions/setup-node@v3 + with: + node-version: 20 + cache: 'yarn' + - run: yarn + + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + + - name: Install dependencies + run: forge install + + - name: Check contract sizes + run: forge build --sizes + + - name: Run tests + run: forge test -vvv + + # - name: Run snapshot + # run: forge snapshot