Skip to content

feat(protocol): make sure system proof delay is proofTimeTarget #1922

feat(protocol): make sure system proof delay is proofTimeTarget

feat(protocol): make sure system proof delay is proofTimeTarget #1922

Workflow file for this run

name: Protocol
on:
push:
branches: [main]
paths:
- "packages/protocol/**"
pull_request:
paths:
- "packages/protocol/**"
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Cancel previous runs
uses: styfle/cancel-workflow-action@0.11.0
with:
access_token: ${{ github.token }}
- name: Checkout repository
uses: actions/checkout@v3
with:
submodules: recursive
- name: Install Foundry
uses: foundry-rs/foundry-toolchain@v1
- name: Install pnpm dependencies
uses: ./.github/actions/install-pnpm-dependencies
- name: protocol - Unit Tests
working-directory: ./packages/protocol
run: pnpm clean && pnpm compile:hardhat && pnpm test
- name: protocol - Generate Genesis
working-directory: ./packages/protocol
run: pnpm test:genesis
# TODO: CompilerError: Stack too deep
# - name: protocol - Test Coverage
# working-directory: ./packages/protocol
# run: pnpm test:coverage
- name: protocol - Run snapshot (foundry)
working-directory: ./packages/protocol
run: pnpm snapshot
- name: protocol - Deploy L1 Contracts
working-directory: ./packages/protocol
run: |
anvil &
while ! nc -z localhost 8545; do
sleep 1
done
pnpm deploy:foundry
# - name: protocol - Upload coverage to Codecov
# uses: codecov/codecov-action@v3
# with:
# directory: ./packages/protocol/coverage
# flags: protocol
post-merge:
if: github.event.pull_request.merged == true
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Set up protocol
uses: ./.github/actions/set-up-protocol
- name: Run the command to update the documentation
run: pnpm -F protocol export:docs
- name: Stage all modified and untracked files
run: git add .
- name: Exit if there are no changes
run: git diff --exit-code --cached
- name: Create pull request
uses: peter-evans/create-pull-request@v4
with:
title: "docs(protocol): auto-update protocol documentation"
commit-message: "docs(protocol): auto-update protocol documentation"
branch: update-docs-${{ github.sha }}
delete-branch: true