0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-06 22:40:14 -05:00

Set a default environment for browser tests

no issue
This commit is contained in:
Sam Lord 2022-12-02 16:27:41 +00:00 committed by Sam Lord
parent 00d223991d
commit 74d0fee125

View file

@ -27,6 +27,7 @@ jobs:
timeout-minutes: 60 timeout-minutes: 60
runs-on: ubuntu-latest runs-on: ubuntu-latest
if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/')) if: github.event_name == 'push' || (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'renovate/'))
environment: ${{ github.event.inputs.environment || "browser-tests-local" }}
defaults: defaults:
run: run:
working-directory: ghost/core working-directory: ghost/core
@ -52,7 +53,7 @@ jobs:
run: npx playwright install --with-deps run: npx playwright install --with-deps
- name: Build Admin - name: Build Admin
if: github.event.inputs.site_url == '' if: github.event.inputs.environment == 'browser-tests-local'
working-directory: ghost/admin working-directory: ghost/admin
run: yarn build:prod run: yarn build:prod