From 1bf727bcd6fa23b7f1f4edde42dee5f70e230f68 Mon Sep 17 00:00:00 2001 From: Jack Xu Date: Sun, 28 Apr 2024 05:30:27 -0400 Subject: [PATCH] Use forge for CI --- .github/workflows/main-push-pull.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/main-push-pull.yml b/.github/workflows/main-push-pull.yml index e33d838..f584874 100644 --- a/.github/workflows/main-push-pull.yml +++ b/.github/workflows/main-push-pull.yml @@ -17,6 +17,11 @@ jobs: - name: Check out code uses: actions/checkout@v3 + - name: Install Foundry + uses: foundry-rs/foundry-toolchain@v1 + with: + version: nightly + - name: Setup pnpm uses: pnpm/action-setup@v3.0.0 with: @@ -39,11 +44,16 @@ jobs: - name: Install dependencies run: pnpm i --frozen-lockfile - - name: Build application - run: npm run build + - name: Run Forge build + run: | + forge --version + forge build --sizes + id: build - - name: Run tests - run: npm test + - name: Run Forge tests + run: | + forge test -vvv + id: test TypeScript-Static-Analyis: runs-on: ubuntu-latest