Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/go_modules/github.com/decred/dcrd…
Browse files Browse the repository at this point in the history
…/dcrec/secp256k1/v4-4.3.0
  • Loading branch information
dionysuzx authored May 15, 2024
2 parents 5d12308 + 9a25e23 commit db20934
Show file tree
Hide file tree
Showing 317 changed files with 25,741 additions and 2,873 deletions.
4 changes: 2 additions & 2 deletions .github/actions/install-pnpm-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@ runs:
node-version: 20

- name: Install pnpm
uses: pnpm/action-setup@v3
uses: pnpm/action-setup@v4
id: pnpm-install
with:
version: 8
version: 9
run_install: false

- name: Get pnpm store directory
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Bridge UI Build and Checks

on:
workflow_call
on: workflow_call

jobs:
build:
Expand Down
29 changes: 16 additions & 13 deletions .github/workflows/bridge-ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,49 +3,52 @@ name: Bridge UI CI/CD
on:
push:
branches-ignore:
- main
- release-please-*
paths:
- "packages/bridge-ui/**"
tags:
- "bridge-ui-v*"
pull_request:
paths:
- "packages/bridge-ui/**"

jobs:
build-and-test:
uses: ./.github/workflows/bridge-ui-ci.yml
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_name != 'main' }}
if: ${{ github.ref_type != 'tag' }}
needs: build-and-test
uses: ./.github/workflows/vercel-deploy.yml
uses: ./.github/workflows/repo--vercel-deploy.yml
with:
environment: 'preview'
flags: ''
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_name != 'main' }}
if: ${{ github.ref_type != 'tag' }}
needs: build-and-test
uses: ./.github/workflows/vercel-deploy.yml
uses: ./.github/workflows/repo--vercel-deploy.yml
with:
environment: 'preview'
flags: ''
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: ${{ github.ref_name == 'main' && contains(github.ref, 'refs/tags/bridge-ui-') }}
if: ${{ startsWith(github.ref, 'refs/tags/bridge-ui-v') }}
needs: build-and-test
uses: ./.github/workflows/vercel-deploy.yml
uses: ./.github/workflows/repo--vercel-deploy.yml
with:
environment: 'production'
flags: '--prod'
environment: "production"
flags: "--prod"
secrets:
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_BRIDGE_UI_HEKLA }}
vercel_org_id: ${{ secrets.VERCEL_ORG_ID }}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
name: Blobstorage Preview
name: Docs Site Preview

env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_BLOBSTORAGE }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_DOCS_SITE }}

on:
push:
branches-ignore:
- main
- release-please-*
paths:
- "packages/blobstorage/**"
- "packages/docs-site/**"

jobs:
deploy-blobstorage-preview:
deploy-docs-site-preview:
runs-on: [taiko-runner]
steps:
- name: Checkout repository
Expand Down
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
name: Blobstorage Production
name: Docs Site Production

env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_BLOBSTORAGE }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_DOCS_SITE }}

on:
push:
tags:
- "blobstorage-*"
- "docs-site-*"

jobs:
deploy-blobstorage-production:
deploy-docs-site-production:
runs-on: [taiko-runner]
steps:
- name: Checkout repository
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/eventindexer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ on:
pull_request:
paths:
- "packages/eventindexer/**"
- "go.mod"
- "go.sum"

jobs:
lint-eventindexer:
name: lint
name: lint-eventindexer
runs-on: [taiko-runner]
steps:
- uses: actions/setup-go@v5
Expand All @@ -30,7 +32,7 @@ jobs:

test-eventindexer:
runs-on: [taiko-runner]
needs: lint
needs: lint-eventindexer
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
Expand All @@ -53,8 +55,7 @@ jobs:
flags: eventindexer

push-eventindexer-docker-image:
# only push docker image on PR merge to main
if: ${{ github.event }} == 'push'
if: ${{ github.event == 'push' }}
name: Build and push docker image
runs-on: [taiko-runner]

Expand Down
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
name: Guardians UI Build and Checks

on:
workflow_call
on: workflow_call

jobs:
check-guardian-prover-health-check-ui:
Expand Down Expand Up @@ -31,9 +30,3 @@ jobs:
- name: Linting
working-directory: ./packages/guardian-prover-health-check-ui
run: pnpm lint

- name: Unit tests
env:
SKIP_ENV_VALIDATION: "true"
working-directory: ./packages/guardian-prover-health-check-ui
run: pnpm test:unit
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ on:

jobs:
build-and-test:
uses: ./.github/workflows/guardians-ui-ci.yml
uses: ./.github/workflows/guardian-prover-health-check-ui--ci.yml

# Deployment name follow the pattern: deploy_<appname(guardian-prover-health-check-ui)>_<network(devnet|hekla|mainnet)>_<environment(preview|production)>
deploy_guardians-ui_hekla_preview:
if: ${{ github.ref_name != 'main' }}
needs: build-and-test
uses: ./.github/workflows/vercel-deploy.yml
uses: ./.github/workflows/repo--vercel-deploy.yml
with:
environment: 'preview'
flags: ''
environment: "preview"
flags: ""
secrets:
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_GUARDIAN_UI_HEKLA }}
vercel_org_id: ${{ secrets.VERCEL_ORG_ID }}
Expand All @@ -30,10 +30,10 @@ jobs:
deploy_guardians-ui_devnet_preview:
if: ${{ github.ref_name != 'main' }}
needs: build-and-test
uses: ./.github/workflows/vercel-deploy.yml
uses: ./.github/workflows/repo--vercel-deploy.yml
with:
environment: 'preview'
flags: ''
environment: "preview"
flags: ""
secrets:
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_GUARDIAN_UI_INTERNAL }}
vercel_org_id: ${{ secrets.VERCEL_ORG_ID }}
Expand All @@ -42,10 +42,10 @@ jobs:
deploy_guardians-ui_hekla_production:
if: ${{ github.ref_name == 'main' && contains(github.ref, 'refs/tags/guardians-ui-') }}
needs: build-and-test
uses: ./.github/workflows/vercel-deploy.yml
uses: ./.github/workflows/repo--vercel-deploy.yml
with:
environment: 'production'
flags: '--prod'
environment: "production"
flags: "--prod"
secrets:
vercel_project_id: ${{ secrets.VERCEL_PROJECT_ID_GUARDIAN_UI_HEKLA }}
vercel_org_id: ${{ secrets.VERCEL_ORG_ID }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ on:
pull_request:
paths:
- "packages/guardian-prover-health-check/**"
- "go.mod"
- "go.sum"

jobs:
lint:
name: lint
lint-guardian-prover-health-check:
name: lint-guardian-prover-health-check
runs-on: [taiko-runner]
steps:
- uses: actions/setup-go@v5
Expand All @@ -28,9 +30,9 @@ jobs:
working-directory: ./packages/guardian-prover-health-check
args: --config=.golangci.yml --timeout=4m

test:
test-guardian-prover-health-check:
runs-on: [taiko-runner]
needs: lint
needs: lint-guardian-prover-health-check
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
Expand All @@ -52,9 +54,8 @@ jobs:
files: ./packages/guardian-prover-health-check/coverage.txt
flags: guardian-prover-health-check

push-docker-image:
# only push docker image on PR merge to main
if: ${{ github.event }} == 'push'
push-guardian-prover-health-check-docker-image:
if: ${{ github.event == 'push' }}
name: Build and push docker image
runs-on: [taiko-runner]

Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/relayer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ on:
pull_request:
paths:
- "packages/relayer/**"
- "go.mod"
- "go.sum"

jobs:
lint-relayer:
name: lint
name: lint-relayer
runs-on: [taiko-runner]
steps:
- uses: actions/setup-go@v5
Expand All @@ -30,7 +32,7 @@ jobs:

test-relayer:
runs-on: [taiko-runner]
needs: lint
needs: lint-relayer
steps:
- name: Cancel Previous Runs
uses: styfle/cancel-workflow-action@0.12.1
Expand All @@ -53,8 +55,7 @@ jobs:
flags: relayer

push-relayer-docker-image:
# only push docker image on PR merge to main
if: ${{ github.event }} == 'push'
if: ${{ github.event == 'push' }}
name: Build and push docker image
runs-on: [taiko-runner]

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ jobs:
main
deps
deps-dev
docs-site
blobstorage
branding
bridge-ui
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,18 @@ on:
required: true
secrets:
vercel_project_id:
description: 'Vercel Project ID'
description: "Vercel Project ID"
required: true
vercel_org_id:
description: 'Vercel ORG ID'
description: "Vercel ORG ID"
required: true
vercel_token:
description: 'Vercel TOKEN'
description: "Vercel TOKEN"
required: true

env:
VERCEL_ORG_ID: ${{ secrets.vercel_org_id }}
VERCEL_PROJECT_ID: ${{ secrets.vercel_project_id }}
VERCEL_ORG_ID: ${{ secrets.vercel_org_id }}
VERCEL_PROJECT_ID: ${{ secrets.vercel_project_id }}

jobs:
build-deploy:
Expand Down
13 changes: 9 additions & 4 deletions .github/workflows/supplementary-contracts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,15 @@ jobs:
- name: Install pnpm dependencies
uses: ./.github/actions/install-pnpm-dependencies

- name: Check formatting
working-directory: ./packages/supplementary-contracts
run: forge fmt --check

- name: Unit Tests
working-directory: ./packages/supplementary-contracts
run: pnpm clean && pnpm test

- name: Format solidity && update contract layout table
working-directory: ./packages/supplementary-contracts
run: pnpm layout && forge fmt

- name: Commit contract layout table
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "forge fmt & update contract layout table"
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
pull_request:
paths:
- "packages/taiko-client/**"
- "go.mod"
- "go.sum"

jobs:
lint:
Expand Down
Loading

0 comments on commit db20934

Please sign in to comment.