-
Notifications
You must be signed in to change notification settings - Fork 0
64 lines (55 loc) · 1.75 KB
/
Copy pathlighthouse.yml
File metadata and controls
64 lines (55 loc) · 1.75 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
name: Lighthouse and SEO
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
permissions:
contents: read
jobs:
audit:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v6
- name: Validate SEO metadata and canonical URLs
run: python3 scripts/seo-audit.py
- name: Validate HTML
uses: Cyb3r-Jak3/html5validator-action@v7.2.0
with:
root: .
blacklist: googlecaadda4a5b13e6cb.html node_modules .lighthouseci
extra: "--ignore-re CSS:"
- name: Validate internal and external links
uses: lycheeverse/lychee-action@v2
with:
args: >-
--root-dir .
--include-fragments
--timeout 30
--max-retries 3
--retry-wait-time 2
README.md
terraform-modules/index.html
fail: true
jobSummary: true
token: ${{ secrets.GITHUB_TOKEN }}
- name: Start static preview
run: |
python3 -m http.server 8080 > /tmp/native-cube-http.log 2>&1 &
curl --fail --retry 5 --retry-connrefused --retry-delay 1 \
http://127.0.0.1:8080/
- name: Run Lighthouse
uses: treosh/lighthouse-ci-action@v12
with:
configPath: ./lighthouserc.json
uploadArtifacts: true
urls: |
http://127.0.0.1:8080/
http://127.0.0.1:8080/k8s-manifest-builder/
http://127.0.0.1:8080/helm-chart-builder/
http://127.0.0.1:8080/kubernetes-rbac-explorer/
http://127.0.0.1:8080/visual-subnet-calculator/
http://127.0.0.1:8080/yaml-formatter/
http://127.0.0.1:8080/terraform-modules/