mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-03 23:00:14 -05:00
Fixed browser tests on CI
We need to run `yarn build` in the top level to ensure that all packages are built
This commit is contained in:
parent
b9565bc290
commit
ac2adfc964
1 changed files with 4 additions and 3 deletions
7
.github/workflows/browser-tests.yml
vendored
7
.github/workflows/browser-tests.yml
vendored
|
@ -31,9 +31,6 @@ jobs:
|
||||||
environment: ${{ github.event.inputs.environment || 'browser-tests-local' }}
|
environment: ${{ github.event.inputs.environment || 'browser-tests-local' }}
|
||||||
env:
|
env:
|
||||||
ENVIRONMENT: ${{ github.event.inputs.environment || 'browser-tests-local' }}
|
ENVIRONMENT: ${{ github.event.inputs.environment || 'browser-tests-local' }}
|
||||||
defaults:
|
|
||||||
run:
|
|
||||||
working-directory: ghost/core
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
with:
|
with:
|
||||||
|
@ -56,9 +53,11 @@ jobs:
|
||||||
run: yarn
|
run: yarn
|
||||||
|
|
||||||
- name: Run migrations
|
- name: Run migrations
|
||||||
|
working-directory: ghost/core
|
||||||
run: yarn setup
|
run: yarn setup
|
||||||
|
|
||||||
- name: Install Playwright
|
- name: Install Playwright
|
||||||
|
working-directory: ghost/core
|
||||||
run: npx playwright install --with-deps
|
run: npx playwright install --with-deps
|
||||||
|
|
||||||
- name: Build Admin
|
- name: Build Admin
|
||||||
|
@ -68,6 +67,7 @@ jobs:
|
||||||
|
|
||||||
- name: Run Playwright tests on a remote site
|
- name: Run Playwright tests on a remote site
|
||||||
if: env.ENVIRONMENT == 'browser-tests-staging'
|
if: env.ENVIRONMENT == 'browser-tests-staging'
|
||||||
|
working-directory: ghost/core
|
||||||
run: yarn test:browser
|
run: yarn test:browser
|
||||||
env:
|
env:
|
||||||
TEST_URL: ${{ github.event.inputs.site_url || secrets.TEST_URL }}
|
TEST_URL: ${{ github.event.inputs.site_url || secrets.TEST_URL }}
|
||||||
|
@ -76,6 +76,7 @@ jobs:
|
||||||
|
|
||||||
- name: Run Playwright tests locally
|
- name: Run Playwright tests locally
|
||||||
if: env.ENVIRONMENT == 'browser-tests-local'
|
if: env.ENVIRONMENT == 'browser-tests-local'
|
||||||
|
working-directory: ghost/core
|
||||||
run: yarn test:browser
|
run: yarn test:browser
|
||||||
env:
|
env:
|
||||||
STRIPE_PUBLISHABLE_KEY: ${{ secrets.STRIPE_PUBLISHABLE_KEY }}
|
STRIPE_PUBLISHABLE_KEY: ${{ secrets.STRIPE_PUBLISHABLE_KEY }}
|
||||||
|
|
Loading…
Add table
Reference in a new issue