-
-
Notifications
You must be signed in to change notification settings - Fork 85
46 lines (38 loc) · 1.06 KB
/
docs-e2e.yml
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
name: 🛠 Docs UI regressions
on:
push:
branches: [main]
paths:
- ".github/workflows/docs-e2e.yml"
- "docs/**"
pull_request:
branches: [main]
paths:
- ".github/workflows/docs-e2e.yml"
- "docs/**"
jobs:
take-screenshots:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
defaults:
run:
working-directory: ./docs
steps:
- name: Check out repository code
uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Install Playwright browsers
run: yarn playwright install --with-deps chromium
- name: Build the website
run: yarn docusaurus build
- name: Take screenshots with Playwright
run: yarn playwright test
- name: Upload screenshots to Argos
run: yarn argos upload ./screenshots