Skip to content

Commit

Permalink
ci(protocol): improve protocol.yml to avoid duplicate solidity code c…
Browse files Browse the repository at this point in the history
…ompilation. (#18079)
  • Loading branch information
dantaik authored Sep 12, 2024
1 parent 037ce13 commit 7500852
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/protocol.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,30 @@ jobs:
- name: Install pnpm dependencies
uses: ./.github/actions/install-pnpm-dependencies

- name: Unit tests
- name: Clean up and fmt
working-directory: ./packages/protocol
run: pnpm clean && forge fmt && pnpm test:l1 && pnpm layout:l1 && pnpm test:l2 && pnpm layout:l2
run: pnpm clean && forge fmt

- name: L2-Unit tests
working-directory: ./packages/protocol
run: pnpm compile:l2 && pnpm test:l2 && pnpm layout:l2

- name: L2-Generate genesis
working-directory: ./packages/protocol
run: pnpm genesis:test

- name: L1-Unit tests
working-directory: ./packages/protocol
run: pnpm compile:l1 && pnpm test:l1 && pnpm layout:l1

- name: Commit contract layout table
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "forge fmt & update contract layout tables"

- name: Generate genesis
working-directory: ./packages/protocol
run: pnpm genesis:test

- name: Deploy L1 contracts
- name: L1-Deploy contracts
working-directory: ./packages/protocol
timeout-minutes: 2
run: |
anvil --hardfork cancun &
while ! nc -z localhost 8545; do
Expand Down

0 comments on commit 7500852

Please sign in to comment.