-
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
554 changed files
with
59,617 additions
and
5,433 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
name: Bridge UI Build and Checks | ||
|
||
on: workflow_call | ||
|
||
jobs: | ||
build: | ||
runs-on: [taiko-runner] | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm dependencies | ||
uses: ./.github/actions/install-pnpm-dependencies | ||
|
||
# This step is needed because the .env file is not committed to the repository | ||
# and the Svelte check complains about not finding the exports from $env/static/public, | ||
# which will be generated based on the .env file when running `svelte-kit sync` | ||
- name: Copy .env.example to .env | ||
working-directory: ./packages/bridge-ui | ||
run: cp .env.example .env | ||
|
||
- name: Export config to .env | ||
working-directory: ./packages/bridge-ui | ||
run: pnpm export:config | ||
|
||
- name: Build Svelte app | ||
env: | ||
SKIP_ENV_VALIDATION: "true" | ||
working-directory: ./packages/bridge-ui | ||
run: pnpm build | ||
|
||
- name: Svelte check | ||
working-directory: ./packages/bridge-ui | ||
run: pnpm svelte:check | ||
|
||
- name: Linting | ||
working-directory: ./packages/bridge-ui | ||
run: pnpm lint | ||
|
||
- name: Unit tests | ||
env: | ||
SKIP_ENV_VALIDATION: "true" | ||
working-directory: ./packages/bridge-ui | ||
run: pnpm test:unit |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,58 +1,55 @@ | ||
name: Bridge UI | ||
name: Bridge UI CI/CD | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
branches-ignore: | ||
- main | ||
- release-please-* | ||
paths: | ||
- "packages/bridge-ui/**" | ||
tags: | ||
- "bridge-ui-v*" | ||
pull_request: | ||
paths: | ||
- "packages/bridge-ui/**" | ||
|
||
jobs: | ||
build: | ||
runs-on: [taiko-runner] | ||
steps: | ||
- name: Cancel previous runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
||
- name: Install pnpm dependencies | ||
uses: ./.github/actions/install-pnpm-dependencies | ||
|
||
# This step is needed because the .env file is not committed to the repository | ||
# and the Svelte check complains about not finding the exports from $env/static/public, | ||
# which will be generated based on the .env file when running `svelte-kit sync` | ||
- name: Copy .env.example to .env | ||
working-directory: ./packages/bridge-ui | ||
run: cp .env.example .env | ||
|
||
- name: Export config to .env | ||
working-directory: ./packages/bridge-ui | ||
run: pnpm export:config | ||
|
||
- name: Build Svelte app | ||
env: | ||
SKIP_ENV_VALIDATION: "true" | ||
working-directory: ./packages/bridge-ui | ||
run: pnpm build | ||
|
||
- name: Svelte check | ||
working-directory: ./packages/bridge-ui | ||
run: pnpm svelte:check | ||
|
||
- name: Linting | ||
working-directory: ./packages/bridge-ui | ||
run: pnpm lint | ||
|
||
- name: Unit tests | ||
env: | ||
SKIP_ENV_VALIDATION: "true" | ||
working-directory: ./packages/bridge-ui | ||
run: pnpm test:unit | ||
|
||
# TODO: Playwright tests? | ||
build-and-test: | ||
uses: ./.github/workflows/bridge-ui--ci.yml | ||
|
||
# Deployment name follow the pattern: deploy_<appname(bridge-ui)>_<network(devnet|hekla|mainnet)>_<environment(preview|production)> | ||
deploy_bridge-ui_hekla_preview: | ||
if: ${{ github.ref_type != 'tag' }} | ||
needs: build-and-test | ||
uses: ./.github/workflows/repo--vercel-deploy.yml | ||
with: | ||
environment: "preview" | ||
flags: "" | ||
secrets: | ||
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_BRIDGE_UI_HEKLA }} | ||
vercel_org_id: ${{ secrets.VERCEL_ORG_ID }} | ||
vercel_token: ${{ secrets.VERCEL_TOKEN }} | ||
|
||
deploy_bridge-ui_devnet_preview: | ||
if: ${{ github.ref_type != 'tag' }} | ||
needs: build-and-test | ||
uses: ./.github/workflows/repo--vercel-deploy.yml | ||
with: | ||
environment: "preview" | ||
flags: "" | ||
secrets: | ||
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_BRIDGE_UI_INTERNAL }} | ||
vercel_org_id: ${{ secrets.VERCEL_ORG_ID }} | ||
vercel_token: ${{ secrets.VERCEL_TOKEN }} | ||
|
||
deploy_bridge-ui_hekla_production: | ||
if: ${{ startsWith(github.ref, 'refs/tags/bridge-ui-v') }} | ||
needs: build-and-test | ||
uses: ./.github/workflows/repo--vercel-deploy.yml | ||
with: | ||
environment: "production" | ||
flags: "--prod" | ||
secrets: | ||
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_BRIDGE_UI_HEKLA }} | ||
vercel_org_id: ${{ secrets.VERCEL_ORG_ID }} | ||
vercel_token: ${{ secrets.VERCEL_TOKEN }} |
8 changes: 5 additions & 3 deletions
8
.github/workflows/bridge-ui-preview.yml → .github/workflows/docs-site--preview.yml
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
8 changes: 5 additions & 3 deletions
8
.github/workflows/blobstorage-production.yml → .github/workflows/docs-site--production.yml
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 |
---|---|---|
|
@@ -8,18 +8,20 @@ on: | |
pull_request: | ||
paths: | ||
- "packages/eventindexer/**" | ||
- "go.mod" | ||
- "go.sum" | ||
|
||
jobs: | ||
lint: | ||
name: lint | ||
lint-eventindexer: | ||
name: lint-eventindexer | ||
runs-on: [taiko-runner] | ||
steps: | ||
- uses: actions/setup-go@v5 | ||
with: | ||
go-version: 1.21.0 | ||
- uses: actions/checkout@v4 | ||
- name: golangci-lint | ||
uses: golangci/golangci-lint-action@v4 | ||
uses: golangci/golangci-lint-action@v6 | ||
with: | ||
# Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version | ||
version: latest | ||
|
@@ -28,9 +30,9 @@ jobs: | |
working-directory: ./packages/eventindexer | ||
args: --config=.golangci.yml --timeout=4m | ||
|
||
test: | ||
test-eventindexer: | ||
runs-on: [taiko-runner] | ||
needs: lint | ||
needs: lint-eventindexer | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
|
@@ -52,9 +54,9 @@ jobs: | |
files: ./packages/eventindexer/coverage.txt | ||
flags: eventindexer | ||
|
||
push-docker-image: | ||
push-eventindexer-docker-image: | ||
# only push docker image on PR merge to main | ||
if: ${{ github.event }} == 'push' | ||
if: ${{ github.event == 'push' && github.ref == 'refs/heads/main' }} | ||
name: Build and push docker image | ||
runs-on: [taiko-runner] | ||
|
||
|
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.