-
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.
Merge branch 'main' into nfts-tbz-s2-champion-game-draft
- Loading branch information
Showing
399 changed files
with
8,520 additions
and
3,652 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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" | ||
|
@@ -14,7 +17,8 @@ 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: | ||
|
@@ -31,14 +35,18 @@ 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: | ||
|
@@ -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: | ||
|
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 |
---|---|---|
@@ -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: | ||
|
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 |
---|---|---|
@@ -1,17 +1,15 @@ | ||
name: Protocol | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- "packages/protocol/**" | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
paths: | ||
- "packages/protocol/**" | ||
|
||
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 | ||
|
@@ -21,6 +19,9 @@ jobs: | |
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Prepare environment | ||
run: sudo apt-get update && sudo apt-get install -y git nc | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
with: | ||
|
@@ -32,32 +33,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 && pnpm test | ||
run: pnpm clean && forge fmt | ||
|
||
- name: Format solidity && update contract layout table | ||
- name: L2-Unit tests | ||
working-directory: ./packages/protocol | ||
run: pnpm layout && forge fmt | ||
run: pnpm compile:l2 && pnpm test:l2 && pnpm layout:l2 | ||
|
||
- 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 table" | ||
|
||
- name: Generate genesis | ||
working-directory: ./packages/protocol | ||
run: pnpm test:genesis | ||
|
||
- name: Run snapshot (Foundry) | ||
working-directory: ./packages/protocol | ||
run: pnpm snapshot | ||
commit_message: "forge fmt & update contract layout tables" | ||
|
||
- 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 | ||
sleep 1 | ||
done | ||
pnpm test:deploy | ||
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 |
---|---|---|
|
@@ -5,7 +5,10 @@ on: | |
branches: [main] | ||
paths: | ||
- "packages/relayer/**" | ||
- "go.mod" | ||
- "go.sum" | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
paths: | ||
- "packages/relayer/**" | ||
- "go.mod" | ||
|
@@ -14,7 +17,8 @@ on: | |
jobs: | ||
lint-relayer: | ||
name: lint-relayer | ||
runs-on: [taiko-runner] | ||
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.draft == false }} | ||
runs-on: [arc-runner-set] | ||
steps: | ||
- uses: actions/setup-go@v5 | ||
with: | ||
|
@@ -31,14 +35,18 @@ jobs: | |
args: --config=.golangci.yml --timeout=4m | ||
|
||
test-relayer: | ||
runs-on: [taiko-runner] | ||
if: ${{ github.event_name == 'pull_request' && github.event.pull_request.draft == false }} | ||
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: | ||
|
@@ -55,11 +63,15 @@ jobs: | |
flags: relayer | ||
|
||
push-relayer-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: | ||
|
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 |
---|---|---|
@@ -1,12 +1,14 @@ | ||
name: Auto Approve PR | ||
|
||
on: pull_request_target | ||
on: | ||
pull_request: | ||
types: [opened, synchronize, reopened, ready_for_review] | ||
|
||
jobs: | ||
auto-approve: | ||
runs-on: ubuntu-latest | ||
if: github.event.pull_request.draft == false && github.actor == 'dependabot[bot]' | ||
runs-on: [arc-runner-set] | ||
permissions: | ||
pull-requests: write | ||
if: github.actor == 'dependabot[bot]' | ||
steps: | ||
- uses: hmarr/auto-approve-action@v4 |
Oops, something went wrong.