mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-06 22:40:14 -05:00
36 lines
746 B
YAML
36 lines
746 B
YAML
|
name: Browser Tests
|
||
|
on:
|
||
|
workflow_dispatch:
|
||
|
site_url:
|
||
|
description: 'Site URL to test'
|
||
|
required: true
|
||
|
type: string
|
||
|
jobs:
|
||
|
test:
|
||
|
timeout-minutes: 60
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- uses: actions/checkout@v2
|
||
|
- uses: actions/setup-node@v2
|
||
|
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: ${{ inputs.site_url }}
|
||
|
|
||
|
- uses: actions/upload-artifact@v2
|
||
|
if: always()
|
||
|
with:
|
||
|
name: playwright-report
|
||
|
path: playwright-report/
|
||
|
retention-days: 30
|