-
Notifications
You must be signed in to change notification settings - Fork 3
79 lines (75 loc) · 2.42 KB
/
Copy pathbrowser-quality.yml
File metadata and controls
79 lines (75 loc) · 2.42 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
name: Browser quality
on:
pull_request:
push:
branches: [main]
permissions:
contents: read
env:
GO_VERSION: 1.27.0
HUGO_VERSION: 0.165.0
NODE_VERSION: 24
HUGO_CACHEDIR: ${{ github.workspace }}/.hugo_cache
GOMODCACHE:
${{ github.workspace }}/.hugo_cache/modules/filecache/modules/pkg/mod
jobs:
# One matrix entry per Playwright suite. The `name` values are the published
# check names, so they must stay stable for branch protection.
browser:
name: ${{ matrix.suite.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
suite:
- name: Axe WCAG AA
target: test:a11y
artifact: axe
- name: Responsive shell and mobile menu
target: test:responsive-shell
artifact: responsive-shell
- name: Content components
target: test:content-components
artifact: content-components
- name: Enhanced code blocks
target: test:code-blocks
artifact: code-blocks
- name: Keyboard navigation
target: test:keyboard-nav
artifact: keyboard-nav
- name: PRD5 scenarios
target: test:prd5
artifact: prd5
- name: Section theme colour
target: test:theme-color
artifact: theme-color
- name: Community feedback regressions
target: test:community-feedback
artifact: community-feedback
steps:
- uses: actions/checkout@v7
with:
fetch-depth: 0
- uses: actions/setup-go@v7
with:
go-version: ${{ env.GO_VERSION }}
- uses: actions/setup-node@v7
with:
node-version: ${{ env.NODE_VERSION }}
cache: npm
- name: Install Hugo Extended
run: |
curl -L -o hugo.deb \
"https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_linux-amd64.deb"
sudo dpkg -i hugo.deb
- name: Download Hugo module
run: go mod download github.com/pgsty/oink
- run: npm ci --ignore-scripts
- run: npx playwright install --with-deps chromium
- run: npm run ${{ matrix.suite.target }}
- uses: actions/upload-artifact@v7
if: always()
with:
name: ${{ matrix.suite.artifact }}-playwright-report
path: tmp/playwright-report
if-no-files-found: ignore