-
Notifications
You must be signed in to change notification settings - Fork 0
81 lines (62 loc) · 1.91 KB
/
Copy pathassets.yml
File metadata and controls
81 lines (62 loc) · 1.91 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
80
81
---
on:
pull_request: &ignore-paths
paths-ignore:
- ".gitattributes"
- ".gitignore"
- "CHANGELOG.md"
- "docs/**"
- "README.md"
push: *ignore-paths
name: assets
permissions:
contents: read
concurrency:
cancel-in-progress: true
group: assets-${{ github.workflow }}-${{ github.ref }}
jobs:
build:
name: Verify Vite build reproduces dist.
runs-on: ubuntu-latest
steps:
- name: Checkout.
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- name: Install node.js.
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version-file: .nvmrc
cache: npm
cache-dependency-path: package-lock.json
- name: Install dependencies.
run: npm ci
- name: Check formatting.
run: npm run format:check
- name: Lint JavaScript.
run: npm run lint:js
- name: Lint stylesheets.
run: npm run lint:css
- name: Test JavaScript.
run: npm run test:js
- name: Test JavaScript mutations.
run: npm run test:mutation
- name: Build assets.
run: npm run build
- name: Enforce asset size budgets.
run: npm run check:size
- name: Enforce strict token contrast.
run: npm run check:contrast:strict
- name: Validate browser suite discovery.
run: npm run test:e2e:list
- name: Install Playwright Chromium.
run: npx playwright install --with-deps chromium
- name: Test the large-data browser harness.
run: npm run test:perf
- name: Detect dist drift.
run: |
status="$(git status --porcelain --untracked-files=all --ignored=matching -- resources/assets/dist/)"
test -z "$status" || {
printf '%s\n' "$status"
exit 1
}