mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-19 16:42:17 +03:00
ddcff9621d
- updating to v3 gives us the Latest And Greatest ™️
- really, it only bumps these workflows to Node 16, which is still fine
with me
40 lines
842 B
YAML
40 lines
842 B
YAML
name: Browser Tests
|
|
on:
|
|
workflow_dispatch:
|
|
inputs:
|
|
site_url:
|
|
description: 'Site URL to test'
|
|
required: true
|
|
type: string
|
|
jobs:
|
|
test:
|
|
timeout-minutes: 60
|
|
runs-on: ubuntu-latest
|
|
defaults:
|
|
run:
|
|
working-directory: ghost/core
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-node@v3
|
|
with:
|
|
node-version: '14.x'
|
|
cache: yarn
|
|
|
|
- name: Install dependencies
|
|
run: yarn
|
|
|
|
- name: Install Playwright
|
|
run: npx playwright install --with-deps
|
|
|
|
- name: Run Playwright tests
|
|
run: yarn test:browser
|
|
env:
|
|
TEST_URL: ${{ github.event.inputs.site_url }}
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
if: always()
|
|
with:
|
|
name: playwright-report
|
|
path: playwright-report/
|
|
retention-days: 30
|