-
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 feat/blobstorage-tests
- Loading branch information
Showing
113 changed files
with
6,190 additions
and
4,929 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] | ||
|
@@ -35,34 +38,32 @@ jobs: | |
working-directory: ./packages/protocol | ||
run: forge fmt --check | ||
|
||
- name: Unit Tests | ||
- name: Unit tests | ||
working-directory: ./packages/protocol | ||
run: pnpm clean && pnpm test | ||
|
||
- name: Generate Genesis | ||
- name: Generate contract layout table | ||
working-directory: ./packages/protocol | ||
run: pnpm test:genesis | ||
run: pnpm layout | ||
|
||
- name: Commit contract layout table | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: "Add contract layout table" | ||
|
||
# TODO: CompilerError: Stack too deep | ||
# - name: Test Coverage | ||
# working-directory: ./packages/protocol | ||
# run: pnpm test:coverage | ||
- name: Generate genesis | ||
working-directory: ./packages/protocol | ||
run: pnpm test:genesis | ||
|
||
- 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
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/** |
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.