Skip to content

Commit

Permalink
Merge branch 'main' into chore/rebrand
Browse files Browse the repository at this point in the history
  • Loading branch information
smartprogrammer93 authored Oct 17, 2024
2 parents 26d980d + eeeb4af commit ed8029c
Show file tree
Hide file tree
Showing 325 changed files with 19,664 additions and 9,668 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/bridge-ui--ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,16 @@ on: workflow_call

jobs:
build:
runs-on: [taiko-runner]
runs-on: [arc-runner-set]
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Install Git
run: sudo apt-get update && sudo apt-get install -y git

- name: Checkout repository
uses: actions/checkout@v4

Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/bridge-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,15 @@ name: Bridge UI CI/CD

on:
push:
paths:
- "packages/bridge-ui/**"
branches-ignore:
- dependabot/**
tags:
- "bridge-ui-v*"

pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- "packages/bridge-ui/**"

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/docs-site--preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ on:

jobs:
deploy-docs-site-preview:
runs-on: [taiko-runner]
runs-on: [arc-runner-set]
steps:
- name: Install Git
run: sudo apt-get update && sudo apt-get install -y git

- name: Checkout repository
uses: actions/checkout@v4

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/docs-site--production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,11 @@ on:

jobs:
deploy-docs-site-production:
runs-on: [taiko-runner]
runs-on: [arc-runner-set]
steps:
- name: Install Git
run: sudo apt-get update && sudo apt-get install -y git

- name: Checkout repository
uses: actions/checkout@v4

Expand Down
24 changes: 18 additions & 6 deletions .github/workflows/eventindexer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ on:
branches: [main]
paths:
- "packages/eventindexer/**"
- "go.mod"
- "go.sum"
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- "packages/eventindexer/**"
- "go.mod"
Expand All @@ -14,11 +17,12 @@ on:
jobs:
lint-eventindexer:
name: lint-eventindexer
runs-on: [taiko-runner]
if: github.event_name == 'pull_request'
runs-on: [arc-runner-set]
steps:
- uses: actions/setup-go@v5
with:
go-version: 1.21.0
go-version: 1.23.0
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
Expand All @@ -31,18 +35,22 @@ jobs:
args: --config=.golangci.yml --timeout=4m

test-eventindexer:
runs-on: [taiko-runner]
runs-on: [arc-runner-set]
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.draft == false }}
needs: lint-eventindexer
steps:
- name: Cancel Previous Runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Install Git
run: sudo apt-get update && sudo apt-get install -y git

- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ">=1.21.0"
go-version: ">=1.23.0"

- name: eventindexer - Unit Tests
working-directory: ./packages/eventindexer
Expand All @@ -55,11 +63,15 @@ jobs:
flags: eventindexer

push-eventindexer-docker-image:
if: ${{ github.event_name == 'pull_request' }}
# Skip dependabot PRs
if: ${{ github.event_name == 'pull_request' && ! startsWith(github.ref, 'refs/heads/dependabot/') }}
name: Build and push docker image
runs-on: [taiko-runner]
runs-on: [arc-runner-set]

steps:
- name: Install Git
run: sudo apt-get update && sudo apt-get install -y git

- name: Checkout
uses: actions/checkout@v4
with:
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/fork-diff--preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,11 @@ on:

jobs:
deploy-fork-diff-preview:
runs-on: [taiko-runner]
runs-on: [arc-runner-set]
steps:
- name: Install Git
run: sudo apt-get update && sudo apt-get install -y git

- name: Checkout repository
uses: actions/checkout@v4

Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/fork-diff--production.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,11 @@ on:

jobs:
deploy-fork-diff-production:
runs-on: [taiko-runner]
runs-on: [arc-runner-set]
steps:
- name: Install Git
run: sudo apt-get update && sudo apt-get install -y git

- name: Checkout repository
uses: actions/checkout@v4

Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/guardian-prover-health-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
branches: [main]
paths:
- "packages/guardian-prover-health-check/**"
- "go.mod"
- "go.sum"
pull_request:
paths:
- "packages/guardian-prover-health-check/**"
Expand All @@ -18,7 +20,7 @@ jobs:
steps:
- uses: actions/setup-go@v5
with:
go-version: 1.21.0
go-version: 1.23.0
- uses: actions/checkout@v4
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
Expand All @@ -42,7 +44,7 @@ jobs:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: "1.21.0"
go-version: "1.23.0"

- name: guardian-prover-health-check - Unit Tests
working-directory: ./packages/guardian-prover-health-check
Expand All @@ -55,7 +57,8 @@ jobs:
flags: guardian-prover-health-check

push-guardian-prover-health-check-docker-image:
if: ${{ github.event_name == 'pull_request' }}
# Skip dependabot PRs
if: ${{ github.event_name == 'pull_request' && ! startsWith(github.ref, 'refs/heads/dependabot/') }}
name: Build and push docker image
runs-on: [taiko-runner]

Expand Down
11 changes: 6 additions & 5 deletions .github/workflows/nfts.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,24 @@
name: NFTs

on:
push:
branches: [main]
paths:
- "packages/nfts/**"
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- "packages/nfts/**"

jobs:
build-nfts-contracts:
runs-on: [taiko-runner]
if: github.event.pull_request.draft == false
runs-on: [arc-runner-set]
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Install Git
run: sudo apt-get update && sudo apt-get install -y git

- name: Checkout repository
uses: actions/checkout@v4
with:
Expand Down
37 changes: 37 additions & 0 deletions .github/workflows/protocol-monitors.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Monitors

on:
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- "packages/monitors/**"

jobs:
deploy-protocol-monitors:
if: github.event.pull_request.draft == false
runs-on: [taiko-runner]
permissions:
# Give the necessary permissions for stefanzweifel/git-auto-commit-action.
contents: write
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Install pnpm dependencies
uses: ./.github/actions/install-pnpm-dependencies

- name: Deploy Monitors on OZ Defender
working-directory: packages/monitors/defender/mainnet
env:
DEFENDER_API_KEY: ${{ secrets.DEFENDER_API_KEY }}
DEFENDER_API_SECRET: ${{ secrets.DEFENDER_API_SECRET }}
SERVERLESS_ACCESS_KEY: ${{ secrets.SERVERLESS_ACCESS_KEY }}
run: |
npx serverless deploy
68 changes: 55 additions & 13 deletions .github/workflows/protocol.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,19 @@
name: Protocol

on:
push:
branches: [main]
paths:
- "packages/protocol/**"
pull_request:
types: [opened, synchronize, reopened, ready_for_review]
paths:
- "packages/protocol/**"
- "!packages/protocol/audit/**"
- "!packages/protocol/docs/**"
- "!packages/protocol/simulation/**"
- "!packages/protocol/deployments/**"

jobs:
build-protocol:
runs-on: [taiko-runner]
if: github.event.pull_request.draft == false
runs-on: [arc-runner-set]
permissions:
# Give the necessary permissions for stefanzweifel/git-auto-commit-action.
contents: write
Expand All @@ -21,6 +23,10 @@ jobs:
with:
access_token: ${{ github.token }}

- name: Prepare environment
continue-on-error: true
run: sudo apt-get update && sudo apt-get install -y git wget

- name: Checkout repository
uses: actions/checkout@v4
with:
Expand All @@ -32,24 +38,60 @@ 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

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

- name: L1-Unit tests
working-directory: ./packages/protocol
run: pnpm clean && forge fmt && pnpm test:l1 && pnpm layout:l1 && pnpm test:l2 && pnpm layout:l2
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
until cast chain-id --rpc-url "http://localhost:8545" 2> /dev/null; do
sleep 1
done
pnpm test:deploy:l1
genesis-docker:
if: github.event.pull_request.draft == false
runs-on: [taiko-runner]
permissions:
# Give the necessary permissions for stefanzweifel/git-auto-commit-action.
contents: write
steps:
- name: Cancel previous runs
uses: styfle/[email protected]
with:
access_token: ${{ github.token }}

- name: Checkout repository
uses: actions/checkout@v4
with:
submodules: recursive

- name: Install Foundry
uses: foundry-rs/[email protected]

- name: Install pnpm dependencies
uses: ./.github/actions/install-pnpm-dependencies

- name: Compile
working-directory: ./packages/protocol
run: pnpm clean && pnpm compile

- name: L2-Generate Genesis (using docker)
working-directory: ./packages/protocol
run: pnpm genesis:test
Loading

0 comments on commit ed8029c

Please sign in to comment.