Commit bd0222d
committed
ci: add comprehensive website CI/CD test suite
Removed old workflows:
- deploy.yml, eosim-sanity.yml, link-check.yml, nightly.yml, release.yml, weekly.yml
Added new website-focused CI/CD:
1. website-sanity.yml (on push/PR):
- HTML W3C validation (html5validator)
- Duplicate DOCTYPE detection (catches doubled files)
- HTML structure validation (tag balance, unclosed divs)
- Required files existence check (16 pages + CSS)
- Meta tag validation (viewport, charset, title)
- Internal link validation (href + src)
- CSS syntax validation (brace balance, undefined vars, responsive breakpoints)
- Mobile compatibility (viewport meta, hamburger menu, no fixed-width overflow)
- Cross-page consistency (license, nav links)
2. website-performance.yml (on push/PR + weekly):
- Lighthouse Desktop (6 key pages, thresholds: perf 70%, a11y/bp/seo 80%)
- Lighthouse Mobile (4 key pages, thresholds: perf 50%, a11y/bp/seo 75%)
- JSON result artifacts uploaded
3. website-e2e.yml (on push/PR):
- Playwright responsive tests across 5 viewports (iPhone SE to 1080p)
- Page load sanity (no JS errors, status < 400)
- HTML structure (navbar + footer on every page)
- Mobile horizontal overflow detection
- Hamburger menu toggle verification
- Desktop layout validation
- Internal navigation link crawling
- Interactive element testing (path switcher)
- Visual sanity screenshots (30 captures: 5 viewports x 6 pages)
- Screenshot artifacts uploaded
4. deploy.yml (on push to main):
- Pre-deploy validation gate (required files, no duplicate DOCTYPE, link check)
- GitHub Pages deployment only after validation passes1 parent 9a7fa03 commit bd0222d
13 files changed
Lines changed: 1152 additions & 385 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | 2 | | |
4 | 3 | | |
5 | 4 | | |
| |||
15 | 14 | | |
16 | 15 | | |
17 | 16 | | |
18 | | - | |
| 17 | + | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
29 | 33 | | |
30 | | - | |
31 | | - | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
32 | 42 | | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
37 | 53 | | |
38 | | - | |
39 | 54 | | |
| 55 | + | |
40 | 56 | | |
41 | | - | |
| 57 | + | |
42 | 58 | | |
43 | 59 | | |
44 | | - | |
| 60 | + | |
45 | 61 | | |
46 | 62 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
57 | 74 | | |
58 | | - | |
59 | | - | |
60 | | - | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
61 | 78 | | |
62 | 79 | | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | 80 | | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
69 | 84 | | |
70 | 85 | | |
71 | | - | |
72 | | - | |
73 | | - | |
| 86 | + | |
74 | 87 | | |
75 | | - | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
0 commit comments