You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-`.github/workflows/lighthouse-audit.yml`: Workflow triggered on release tags (`v*`) or manual dispatch. Builds Jekyll site, serves locally, runs Lighthouse CLI, and commits results to `_data/quality_log.yml` with `[skip-version]` flag.
45
+
-`tools/lighthouse_audit.rb`: Ruby script that runs Lighthouse, parses JSON output, extracts Performance/Accessibility/SEO scores, and appends to quality log in YAML format.
46
+
-`_data/quality_log.yml`: Append-only quality metrics log with stable YAML format.
47
+
-`.github/workflows/deploy.yml`: Updated to check for `[skip-version]` commit flag and skip version bump when metrics-only commit is detected.
48
+
49
+
**How it works:**
50
+
1. Lighthouse audit workflow is triggered by release tag creation (via `deploy.yml`) or manual workflow dispatch.
51
+
2. Workflow checks out code, builds Jekyll site, and starts a local HTTP server.
52
+
3.`tools/lighthouse_audit.rb` runs Lighthouse CLI against localhost and parses results.
53
+
4. Scores are appended to `_data/quality_log.yml` with version, release date, commit SHA, and workflow run URL.
54
+
5. Changes are committed with `[skip-version]` flag to prevent cascading version bumps.
55
+
6.`deploy.yml` detects the flag and skips version increment, preventing CI/CD loop.
56
+
57
+
**Design decisions:**
58
+
- Local server instead of production: Ensures repeatable, controlled audits without external dependencies.
59
+
- Append-only format: Preserves historical data for trend analysis (Phase 4).
60
+
-`[skip-version]` commit flag: Prevents metrics collection from disrupting versioning workflow.
61
+
- Python HTTP server: Lightweight, included in standard CI runners, no additional dependencies.
62
+
- YAML format: Consistent with existing site configuration, human-readable for inspection.
63
+
41
64
Changes to `.github/workflows/deploy.yml`, release tags, Pages deployment, or versioning require maintainer approval before implementation.
42
65
43
66
## Phase 3: Developer Experience (DX) & AI Workflows
0 commit comments