Skip to content

Commit

Permalink
Fix: skip bridge UI e2e test and docker build for forked PR (#712)
Browse files Browse the repository at this point in the history
* fix: skip bridge UI e2e test and docker build for forked PR

* fix: update paths filters for bridge e2e tests github workflow
  • Loading branch information
VGau authored Feb 20, 2025
1 parent 2a38663 commit eb0088a
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/bridge-ui-e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,18 @@ on:
paths:
- 'bridge-ui/**'
- '!bridge-ui/**/*.md'
- '.github/workflows/bridge-ui-e2e-tests.yml'
push:
branches:
- main
paths:
- 'bridge-ui/**'
- '!bridge-ui/**/*.md'
- '.github/workflows/bridge-ui-e2e-tests.yml'

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 eb0088a

Please sign in to comment.