File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Build / check
22on :
33 workflow_call :
4+ env :
5+ CHECK_DIR : " .checks"
46jobs :
57 snapshot :
68 name : Generate Snapshot
8789
8890 - name : Run WCAG2AA check
8991 run : |
92+ mkdir -p $CHECK_DIR
9093 pa11y snapshot.html \
91- --ignore WCAG2AA.Principle4.Guideline4_1.4_1_1.F77 || true
94+ --ignore WCAG2AA.Principle4.Guideline4_1.4_1_1.F77 \
95+ > $CHECK_DIR/wcag-report.txt || true
9296
9397 links :
9498 name : Link Validation
@@ -135,6 +139,7 @@ jobs:
135139
136140 - name : Check links with Muffet
137141 run : |
142+ mkdir -p $CHECK_DIR
138143 muffet \
139144 --exclude '\.pdf$' \
140145 --exclude '^https://gitdocumentatie.*' \
@@ -144,4 +149,14 @@ jobs:
144149 --ignore-fragments \
145150 --one-page-only \
146151 http://localhost:8080/snapshot.html \
147- --buffer-size 8192 || true
152+ --buffer-size 8192 > $CHECK_DIR/link-check.txt || true
153+
154+ - name : Commit accessibility and link check results
155+ if : ${{ github.event_name == 'push' }}
156+ run : |
157+ git config user.name "github-actions[bot]"
158+ git config user.email "github-actions[bot]@users.noreply.github.com"
159+ git fetch --all
160+ git add $CHECK_DIR/*.txt
161+ git commit -m "WCAG en link check resultaten toegevoegd" || echo "No changes to commit"
162+ git push
Original file line number Diff line number Diff line change 11* _log
22.idea
3+ .checks /*
4+ ! .checks /* .txt
You can’t perform that action at this time.
0 commit comments