Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/github_actions/docker/setup-qemu-…
Browse files Browse the repository at this point in the history
…action-3
  • Loading branch information
dionysuzx authored Feb 20, 2024
2 parents 5592dfc + 2ec55d5 commit 5e14128
Show file tree
Hide file tree
Showing 429 changed files with 4,328 additions and 7,817 deletions.
51 changes: 0 additions & 51 deletions .github/ISSUE_TEMPLATE/add_project.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/ISSUE_TEMPLATE/bug_report.yml

This file was deleted.

4 changes: 0 additions & 4 deletions .github/ISSUE_TEMPLATE/config.yml

This file was deleted.

28 changes: 0 additions & 28 deletions .github/ISSUE_TEMPLATE/feature_request.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/actions/install-pnpm-dependencies/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ runs:
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18

- name: Install pnpm
uses: pnpm/action-setup@v2
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/bridge-ui-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_BRIDGE_UI }}

on:
push:
branches-ignore:
- main
- release-please-*
paths:
- "packages/bridge-ui/**"

jobs:
Deploy-Preview:
runs-on: ubuntu-latest
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=preview --token=${{ secrets.VERCEL_TOKEN }}

- name: Build Project Artifacts
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
30 changes: 30 additions & 0 deletions .github/workflows/bridge-ui-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_BRIDGE_UI }}

on:
push:
tags:
- "bridge-ui-*"

jobs:
Deploy-Production:
runs-on: ubuntu-latest
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=production --token=${{ secrets.VERCEL_TOKEN }}

- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
name: Bridge UI v2
name: Bridge UI

on:
push:
branches: [main]
paths:
- "packages/bridge-ui-v2/**"
- "packages/bridge-ui/**"
pull_request:
paths:
- "packages/bridge-ui-v2/**"
- "packages/bridge-ui/**"

jobs:
build:
Expand All @@ -28,31 +28,31 @@ jobs:
# 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-v2
working-directory: ./packages/bridge-ui
run: cp .env.example .env

- name: Export config to .env
working-directory: ./packages/bridge-ui-v2
working-directory: ./packages/bridge-ui
run: pnpm export:config

- name: Build Svelte app
env:
SKIP_ENV_VALDIATION: "true"
working-directory: ./packages/bridge-ui-v2
working-directory: ./packages/bridge-ui
run: pnpm build

- name: Svelte check
working-directory: ./packages/bridge-ui-v2
working-directory: ./packages/bridge-ui
run: pnpm svelte:check

- name: Linting
working-directory: ./packages/bridge-ui-v2
working-directory: ./packages/bridge-ui
run: pnpm lint

- name: Unit tests
env:
SKIP_ENV_VALDIATION: "true"
working-directory: ./packages/bridge-ui-v2
working-directory: ./packages/bridge-ui
run: pnpm test:unit

# TODO: Playwright tests?
4 changes: 2 additions & 2 deletions .github/workflows/eventindexer.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
ref: ${{ github.ref }}

- name: Login to GCR
uses: docker/login-action@v2
uses: docker/login-action@v3
with:
registry: gcr.io
username: _json_key
Expand All @@ -79,7 +79,7 @@ jobs:

- name: Docker meta
id: meta
uses: docker/metadata-action@v4
uses: docker/metadata-action@v5
with:
images: |
gcr.io/evmchain/eventindexer
Expand Down
33 changes: 33 additions & 0 deletions .github/workflows/fork-diff-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_FORK_DIFF }}

on:
push:
branches-ignore:
- main
- release-please-*
paths:
- "packages/fork-diff/**"

jobs:
Deploy-Preview:
runs-on: ubuntu-latest
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=preview --token=${{ secrets.VERCEL_TOKEN }}

- name: Build Project Artifacts
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
30 changes: 30 additions & 0 deletions .github/workflows/fork-diff-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_FORK_DIFF }}

on:
push:
tags:
- "fork-diff-*"

jobs:
Deploy-Production:
runs-on: ubuntu-latest
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=production --token=${{ secrets.VERCEL_TOKEN }}

- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
33 changes: 33 additions & 0 deletions .github/workflows/guardian-prover-health-check-ui-preview.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_GUARDIAN_PROVER_HEALTH_CHECK_UI }}

on:
push:
branches-ignore:
- main
- release-please-*
paths:
- "packages/guardian-prover-health-check-ui/**"

jobs:
Deploy-Preview:
runs-on: ubuntu-latest
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=preview --token=${{ secrets.VERCEL_TOKEN }}

- name: Build Project Artifacts
run: vercel build --token=${{ secrets.VERCEL_TOKEN }}

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --token=${{ secrets.VERCEL_TOKEN }}
30 changes: 30 additions & 0 deletions .github/workflows/guardian-prover-health-check-ui-production.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID_GUARDIAN_PROVER_HEALTH_CHECK_UI }}

on:
push:
tags:
- "guardian-prover-health-check-ui-*"

jobs:
Deploy-Production:
runs-on: ubuntu-latest
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=production --token=${{ secrets.VERCEL_TOKEN }}

- name: Build Project Artifacts
run: vercel build --prod --token=${{ secrets.VERCEL_TOKEN }}

- name: Deploy Project Artifacts to Vercel
run: vercel deploy --prebuilt --prod --token=${{ secrets.VERCEL_TOKEN }}
Loading

0 comments on commit 5e14128

Please sign in to comment.