mirror of
https://github.com/vacp2p/linea-monorepo.git
synced 2026-01-09 20:27:58 -05:00
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:
3
.github/workflows/bridge-ui-e2e-tests.yml
vendored
3
.github/workflows/bridge-ui-e2e-tests.yml
vendored
@@ -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
|
||||
|
||||
25
.github/workflows/bridge-ui-publish.yml
vendored
25
.github/workflows/bridge-ui-publish.yml
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user