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