4343 - name : Get Matching Chrome version
4444 run : npx browser-driver-manager install chrome
4545
46+ - name : Start Server
47+ run : |
48+ # Start server in background
49+ npx http-server ./_build/html -p 8080 -s &
50+ sleep 5
51+
52+
4653 # DEBUGGING
4754 - name : Debug - Curl Root Index
4855 run : curl -v http://localhost:8080/index.html
@@ -52,25 +59,25 @@ jobs:
5259 run : curl -v http://localhost:8080/chapters/01/what-is-data-science/index.html
5360
5461 # 3. Serve, Discover URLs, and Run Axe
55- - name : Run Axe Checks
56- run : |
57- # A. Start a local server in the background
58- npx http-server ./_build/html -p 8080 -s &
59- sleep 5
62+ # - name: Run Axe Checks
63+ # run: |
64+ # # A. Start a local server in the background
65+ # npx http-server ./_build/html -p 8080 -s &
66+ # sleep 5
6067
61- # B. Generate the URL list from the actual build artifacts
62- cd _build/html
63- URLS=$(find . -name "*.html" -not -path "*/build/*" | sed 's|^\./||' | sed 's|^|http://localhost:8080/|' | tr '\n' ' ')
68+ # # B. Generate the URL list from the actual build artifacts
69+ # cd _build/html
70+ # URLS=$(find . -name "*.html" -not -path "*/build/*" | sed 's|^\./||' | sed 's|^|http://localhost:8080/|' | tr '\n' ' ')
6471
65- # C. Run Axe CLI on the discovered URLs
66- axe $URLS \
67- --tags wcag2a,wcag2aa,wcag21a,wcag21aa \
68- --save axe-report.json \
69- --exit
72+ # # C. Run Axe CLI on the discovered URLs
73+ # axe $URLS \
74+ # --tags wcag2a,wcag2aa,wcag21a,wcag21aa \
75+ # --save axe-report.json \
76+ # --exit
7077
71- - name : Upload Accessibility Report
72- if : always()
73- uses : actions/upload-artifact@v4
74- with :
75- name : axe-report
76- path : _build/html/axe-report.json
78+ # - name: Upload Accessibility Report
79+ # if: always()
80+ # uses: actions/upload-artifact@v4
81+ # with:
82+ # name: axe-report
83+ # path: _build/html/axe-report.json
0 commit comments