Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci(protocol): forge fmt --check in protocol workflow #15757

Merged
merged 5 commits into from
Feb 13, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
Loading