-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
195 changed files
with
12,002 additions
and
7,161 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,13 +9,16 @@ on: | |
jobs: | ||
build-nfts-contracts: | ||
if: github.event.pull_request.draft == false | ||
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 | ||
with: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,11 +5,15 @@ on: | |
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: | ||
if: github.event.pull_request.draft == false | ||
runs-on: [taiko-runner] | ||
runs-on: [arc-runner-set] | ||
permissions: | ||
# Give the necessary permissions for stefanzweifel/git-auto-commit-action. | ||
contents: write | ||
|
@@ -19,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: | ||
|
@@ -38,10 +46,6 @@ jobs: | |
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 | ||
|
@@ -56,7 +60,38 @@ jobs: | |
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,7 +18,7 @@ jobs: | |
lint-relayer: | ||
name: lint-relayer | ||
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.draft == false }} | ||
runs-on: [taiko-runner] | ||
runs-on: [arc-runner-set] | ||
steps: | ||
- uses: actions/setup-go@v5 | ||
with: | ||
|
@@ -36,14 +36,17 @@ jobs: | |
|
||
test-relayer: | ||
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.draft == false }} | ||
runs-on: [taiko-runner] | ||
runs-on: [arc-runner-set] | ||
needs: lint-relayer | ||
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: | ||
|
@@ -63,9 +66,12 @@ jobs: | |
# 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: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.