-
Notifications
You must be signed in to change notification settings - Fork 32
49 lines (43 loc) · 1.29 KB
/
playwright.yml
File metadata and controls
49 lines (43 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
on:
workflow_call:
inputs:
container-image:
description: 'Image used by DCR service'
required: true
type: string
jobs:
playwright:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
# keep aligned with the number of shards used by `playwright test`
group: [1, 2, 3, 4, 5, 6, 7, 8]
services:
DCR:
image: ${{ inputs.container-image }}
ports:
- 9000:9000
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Node environment
uses: ./.github/actions/setup-node-env
- name: Turn off mandb updates
run: |
sudo mv /usr/bin/mandb /usr/bin/mandb-OFF
sudo cp -p /bin/true /usr/bin/mandb
- name: Install Playwright Browsers
run: pnpm playwright install --with-deps chromium
working-directory: ./dotcom-rendering
- name: Run Playwright
run: pnpm playwright test --shard=${{ matrix.group }}/8
working-directory: ./dotcom-rendering
env:
NODE_ENV: production
- uses: actions/upload-artifact@v6
if: always()
with:
name: playwright-report-${{ matrix.group }}
path: ./dotcom-rendering/playwright-report
retention-days: 5