Skip to content

Commit 371ea92

Browse files
committed
resultaten naar een file pushen
1 parent 9a5945c commit 371ea92

2 files changed

Lines changed: 19 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
name: Build / check
22
on:
33
workflow_call:
4+
env:
5+
CHECK_DIR: ".checks"
46
jobs:
57
snapshot:
68
name: Generate Snapshot
@@ -87,8 +89,10 @@ jobs:
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

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
*_log
22
.idea
3+
.checks/*
4+
!.checks/*.txt

0 commit comments

Comments
 (0)