-
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 dependabot/github_actions/actions/stale-9
- Loading branch information
Showing
136 changed files
with
6,607 additions
and
5,402 deletions.
There are no files selected for viewing
33 changes: 0 additions & 33 deletions
33
.github/workflows/guardian-prover-health-check-ui-preview.yml
This file was deleted.
Oops, something went wrong.
30 changes: 0 additions & 30 deletions
30
.github/workflows/guardian-prover-health-check-ui-production.yml
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Build and Deploy Guardians UI to Vercel | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
environment: | ||
type: string | ||
required: true | ||
flags: | ||
type: string | ||
required: true | ||
vercel_org_id: | ||
type: string | ||
required: true | ||
vercel_project_id: | ||
type: string | ||
required: true | ||
|
||
env: | ||
VERCEL_ORG_ID: ${{ inputs.vercel_org_id }} | ||
VERCEL_PROJECT_ID: ${{ inputs.vercel_project_id }} | ||
|
||
jobs: | ||
build-deploy: | ||
runs-on: [taiko-runner] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm dependencies | ||
uses: ./.github/actions/install-pnpm-dependencies | ||
|
||
- name: Install Vercel CLI | ||
run: pnpm add --global vercel@latest | ||
|
||
- name: Pull Vercel Environment Information | ||
run: vercel pull --yes --environment=${{ inputs.environment }} --token=${{ secrets.VERCEL_TOKEN }} | ||
|
||
- name: Build Project Artifacts | ||
run: vercel build ${{ inputs.flags }} --token=${{ secrets.VERCEL_TOKEN }} | ||
|
||
- name: Deploy Project Artifacts to Vercel | ||
run: vercel deploy --prebuilt ${{ inputs.flags }} --token=${{ secrets.VERCEL_TOKEN }} |
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: Guardian UI CI/CD | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- release-please-* | ||
paths: | ||
- "packages/guardian-prover-health-check-ui/**" | ||
|
||
jobs: | ||
# Deployment name follow the pattern: deploy_<appname(bridge-ui)>_<network(devnet|hekla|mainnet)>_<environment(preview|production)> | ||
deploy_guardian-ui_hekla_preview: | ||
if: ${{ !github.ref_name == 'main' }} | ||
uses: ./.github/workflows/guardian-ui-deploy.yml | ||
with: | ||
environment: "preview" | ||
flags: "" | ||
vercel_org_id: ${{ secrets.VERCEL_ORG_ID }} | ||
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_GUARDIAN_PROVER_HEALTH_CHECK_UI_HEKLA }} | ||
|
||
deploy_guardian-ui_devnet_preview: | ||
if: ${{ !github.ref_name == 'main' }} | ||
uses: ./.github/workflows/guardian-ui-deploy.yml | ||
with: | ||
environment: "preview" | ||
flags: "" | ||
vercel_org_id: ${{ secrets.VERCEL_ORG_ID }} | ||
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_GUARDIAN_PROVER_HEALTH_CHECK_UI_INTERNAL }} | ||
|
||
deploy_guardian-ui_hekla_production: | ||
if: ${{ github.ref_name == 'main' && startsWith(github.ref, 'refs/tags/guardian-prover-health-check-ui-') }} | ||
uses: ./.github/workflows/guardian-ui-deploy.yml | ||
with: | ||
environment: "production" | ||
flags: "--prod" | ||
vercel_org_id: ${{ secrets.VERCEL_ORG_ID }} | ||
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_GUARDIAN_PROVER_HEALTH_CHECK_UI_HEKLA }} |
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 |
---|---|---|
|
@@ -12,6 +12,9 @@ on: | |
jobs: | ||
build: | ||
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] | ||
|
@@ -24,45 +27,37 @@ jobs: | |
submodules: recursive | ||
|
||
- name: Install Foundry | ||
uses: foundry-rs/foundry-toolchain@v1 | ||
with: | ||
version: nightly-2cb875799419c907cc3709e586ece2559e6b340e | ||
uses: foundry-rs/[email protected] | ||
|
||
- name: Install pnpm dependencies | ||
uses: ./.github/actions/install-pnpm-dependencies | ||
|
||
- name: Check formatting | ||
- name: Unit tests | ||
working-directory: ./packages/protocol | ||
run: forge fmt --check | ||
run: pnpm clean && pnpm test | ||
|
||
- name: Unit Tests | ||
- name: Format solidity && update contract layout table | ||
working-directory: ./packages/protocol | ||
run: pnpm clean && pnpm test | ||
run: pnpm layout && forge fmt | ||
|
||
- name: Generate Genesis | ||
- 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 | ||
|
||
# TODO: CompilerError: Stack too deep | ||
# - name: Test Coverage | ||
# working-directory: ./packages/protocol | ||
# run: pnpm test:coverage | ||
|
||
- name: Run snapshot (foundry) | ||
- name: Run snapshot (Foundry) | ||
working-directory: ./packages/protocol | ||
run: pnpm snapshot | ||
|
||
- name: Deploy L1 Contracts | ||
- name: Deploy L1 contracts | ||
working-directory: ./packages/protocol | ||
run: | | ||
anvil --hardfork cancun & | ||
while ! nc -z localhost 8545; do | ||
sleep 1 | ||
done | ||
pnpm test:deploy | ||
# - name: Upload coverage to Codecov | ||
# uses: codecov/codecov-action@v3 | ||
# with: | ||
# directory: ./packages/protocol/coverage | ||
# flags: protocol |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,3 +18,5 @@ package-lock.json | |
yarn.lock | ||
|
||
src/generated/* | ||
|
||
.vercel/** |
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 |
---|---|---|
|
@@ -16,3 +16,4 @@ CHANGELOG.md | |
pnpm-lock.yaml | ||
package-lock.json | ||
yarn.lock | ||
.vercel/** |
Oops, something went wrong.