From bb02a1596eb5e232f358cba7ec87ab06b1477e3b Mon Sep 17 00:00:00 2001 From: d1onys1us <13951458+d1onys1us@users.noreply.github.com> Date: Tue, 13 Feb 2024 10:01:25 -0500 Subject: [PATCH] ci(protocol): forge fmt --check in protocol workflow (#15757) Co-authored-by: Daniel Wang <99078276+dantaik@users.noreply.github.com> --- .github/workflows/protocol.yml | 25 ++++++++++--------------- 1 file changed, 10 insertions(+), 15 deletions(-) diff --git a/.github/workflows/protocol.yml b/.github/workflows/protocol.yml index 3a4931a15c2..3ab258ab7bb 100644 --- a/.github/workflows/protocol.yml +++ b/.github/workflows/protocol.yml @@ -29,24 +29,28 @@ jobs: - name: Install pnpm dependencies uses: ./.github/actions/install-pnpm-dependencies - - name: protocol - Unit Tests + - name: Check formatting + working-directory: ./packages/protocol + run: forge fmt --check + + - name: Unit Tests working-directory: ./packages/protocol run: pnpm clean && pnpm test - - name: protocol - Generate Genesis + - name: Generate Genesis working-directory: ./packages/protocol run: pnpm test:genesis # TODO: CompilerError: Stack too deep - # - name: protocol - Test Coverage + # - name: Test Coverage # working-directory: ./packages/protocol # run: pnpm test:coverage - - name: protocol - Run snapshot (foundry) + - name: Run snapshot (foundry) working-directory: ./packages/protocol run: pnpm snapshot - - name: protocol - Deploy L1 Contracts + - name: Deploy L1 Contracts working-directory: ./packages/protocol run: | anvil --hardfork cancun & @@ -55,17 +59,8 @@ jobs: done pnpm test:deploy - # - name: protocol - Upload coverage to Codecov + # - name: Upload coverage to Codecov # uses: codecov/codecov-action@v3 # with: # directory: ./packages/protocol/coverage # flags: protocol - - # - name: protocol - Generate contract documentation - # run: pnpm -F protocol export:docs - - # - name: protocol - Commit contract documentation - # uses: stefanzweifel/git-auto-commit-action@v4 - # with: - # commit_message: Add auto-generated contract documentation - # file_pattern: "**/*.md"