-
Notifications
You must be signed in to change notification settings - Fork 30
41 lines (35 loc) · 1.08 KB
/
playwright.yml
File metadata and controls
41 lines (35 loc) · 1.08 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
name: E2E Website tests
on:
push:
pull_request:
workflow_dispatch:
jobs:
test-docs:
name: E2E Testing
runs-on: ubuntu-latest
env:
CI: true
defaults:
run:
working-directory: scorecards-site
steps:
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 #v5
with:
fetch-depth: 0
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 #v5
with:
node-version: 22
- name: Install dependencies
run: |
yarn install --frozen-lockfile
yarn add -D @playwright/test chromatic @chromatic-com/playwright
yarn playwright install --with-deps
- name: Run Playwright tests
run: yarn playwright test
env:
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
- name: Run test and Upload the generated Chromatic archives
run: yarn chromatic --playwright -t="$CHROMATIC_PROJECT_TOKEN"
env:
CHROMATIC_PROJECT_TOKEN: ${{ secrets.CHROMATIC_PROJECT_TOKEN }}
ENABLE_SNAPSHOTS: true