Skip to content

Commit

Permalink
fix: skip bridge UI e2e test and docker build for forked PR
Browse files Browse the repository at this point in the history
  • Loading branch information
VGau committed Feb 19, 2025
1 parent b1567ab commit ab23b71
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/workflows/bridge-ui-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ on:

jobs:
run-e2e-tests:
if: github.event.pull_request.head.repo.fork == false
runs-on: gha-runner-scale-set-ubuntu-22.04-amd64-med
steps:
- name: Checkout
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/bridge-ui-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ on:

jobs:
publish:
if: github.event.pull_request.head.repo.fork == false
# ~1 min saved vs small
runs-on: gha-runner-scale-set-ubuntu-22.04-amd64-med
env:
Expand Down Expand Up @@ -65,3 +66,27 @@ jobs:
env:
NEXT_PUBLIC_WALLET_CONNECT_ID: ${{ secrets.PUBLIC_WALLET_CONNECT_ID }}
NEXT_PUBLIC_INFURA_ID: ${{ secrets.PUBLIC_BRIDGE_UI_INFURA_ID }}

test-build:
if: github.event.pull_request.head.repo.fork == true
# ~1 min saved vs small
runs-on: gha-runner-scale-set-ubuntu-22.04-amd64-med
name: Test Build Bridge UI
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Get version from package.json
id: package-version
uses: martinbeentjes/npm-get-version-action@master
with:
path: ./bridge-ui

- name: Setup nodejs environment
uses: ./.github/actions/setup-nodejs
with:
node-version: 18.17.0
pnpm-install-options: '--frozen-lockfile --prefer-offline'

- name: Test Build Bridge UI
run: pnpm run -F bridge-ui build;

0 comments on commit ab23b71

Please sign in to comment.