-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (70 loc) · 2.08 KB
/
Copy pathci.yml
File metadata and controls
84 lines (70 loc) · 2.08 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
82
83
84
name: CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions: {}
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Build Zola
uses: getzola/github-pages@066755243e69f508fd1a74739fbf1a65f656c790
with:
zola_version: v0.22.1
check_links: false
check_flags: "--skip-external-links"
- name: Upload build artifact
uses: actions/upload-artifact@v7
with:
name: public
path: public/
retention-days: 1
axe-core:
needs: build
runs-on: ubuntu-latest
steps:
- name: Download build artifact
uses: actions/download-artifact@v8
with:
name: public
path: public/
- name: Set up bun
uses: oven-sh/setup-bun@v2
with:
bun-version: "latest"
- name: Install chrome with browser-driver-manager
run: bunx browser-driver-manager@2.0.1 install chrome
- name: Serve site and run axe-core
run: |
python3 -m http.server 8000 --directory public &
sleep 2
bunx @axe-core/cli@4.11.1 http://localhost:8000/ \
http://localhost:8000/providers/ \
http://localhost:8000/providers/scaleway/ \
http://localhost:8000/compare.html?providers=aws,google-cloud,microsoft-azure --exit
- name: Report results
if: always()
run: echo "Accessibility testing completed. Check logs above for any violations."
lighthouse:
needs: build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v6
- name: Download build artifact
uses: actions/download-artifact@v8
with:
name: public
path: public/
- name: Set up bun
uses: oven-sh/setup-bun@v2
with:
bun-version: "latest"
- name: Lighthouse analysis
run: bunx @lhci/cli@0.15.x autorun
env:
LHCI_GITHUB_APP_TOKEN: ${{ secrets.LHCI_GITHUB_APP_TOKEN }}