Fix: skip bridge UI e2e test and docker build for forked PR (#712)

* fix: skip bridge UI e2e test and docker build for forked PR

* fix: update paths filters for bridge e2e tests github workflow
This commit is contained in:
Victorien Gauch
2025-02-20 10:36:56 +01:00
committed by GitHub
parent 2a38663956
commit eb0088a894
2 changed files with 28 additions and 0 deletions

View File

@@ -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

View File

@@ -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:
@@ -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;