Skip to content

Commit 93e14d6

Browse files
authored
Merge pull request #159 from bkmgit/linkcheck4
Check for broken site links
2 parents 3b21e51 + 120eec5 commit 93e14d6

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
run: |
1717
zypper refresh
1818
zypper --non-interactive update
19-
zypper --non-interactive install git libxslt lowdown make sblg nodejs npm
19+
zypper --non-interactive install git libxslt linkchecker lowdown make python3 sblg nodejs npm
2020
- uses: actions/checkout@v6
2121
with:
2222
submodules: recursive
@@ -30,6 +30,11 @@ jobs:
3030
run: |
3131
mkdir site
3232
make install PREFIX=$(pwd)/site
33+
- name: check for broken links
34+
run: |
35+
python3 -m http.server -d site 8000 > server.log &
36+
sleep 10
37+
linkchecker -o Failures --check-extern http://0.0.0.0:8000/ || true
3338
- name: Upload artifact
3439
uses: actions/upload-pages-artifact@v4
3540
with:

0 commit comments

Comments
 (0)