Repository navigation
51 lines (51 loc) · 1.45 KB
/
Copy pathci.yml
File metadata and controls
51 lines (51 loc) · 1.45 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
name: Quality checks
on:
push:
branches-ignore:
- main
pull_request:
workflow_dispatch:
permissions:
contents: read
env:
ASTRO_TELEMETRY_DISABLED: '1'
jobs:
check:
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 24
cache: npm
- run: npm ci
- run: npm run check
- run: npx playwright install --with-deps chromium firefox webkit
- run: npm run test:browsers
- name: Measure mobile Lighthouse
run: |
npm run preview > /tmp/wizardloop-preview.log 2>&1 &
preview_pid=$!
trap 'kill "$preview_pid" 2>/dev/null || true' EXIT
for attempt in {1..30}; do
if curl --fail --silent http://127.0.0.1:4322/ > /dev/null; then
break
fi
sleep 1
done
curl --fail --silent http://127.0.0.1:4322/ > /dev/null
export CHROME_PATH="$(node -p "require('@playwright/test').chromium.executablePath()")"
npm run audit:performance
- uses: actions/upload-artifact@v4
if: always()
with:
name: browser-quality-results
path: artifacts/final/
retention-days: 7
- uses: actions/upload-artifact@v4
if: always()
with:
name: mobile-lighthouse-results
path: artifacts/lighthouse/
retention-days: 7