Skip to content

Commit

Permalink
ci(protocol): forge fmt --check in protocol workflow (#15757)
Browse files Browse the repository at this point in the history
Co-authored-by: Daniel Wang <[email protected]>
  • Loading branch information
dionysuzx and dantaik authored Feb 13, 2024
1 parent 16e89d0 commit bb02a15
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions .github/workflows/protocol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 &
Expand All @@ -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"

0 comments on commit bb02a15

Please sign in to comment.