Skip to content

Commit 4596f9d

Browse files
committed
ci: add make linkcheck
Problem: Broken links in docs are not detected in ci. Add a make linkcheck action to the ci.
1 parent 46963ec commit 4596f9d

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

.github/workflows/main.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
on: [ pull_request ]
1+
on: [ pull_request, push ]
22
jobs:
33
check-pr:
44
name: validate commits
@@ -27,3 +27,20 @@ jobs:
2727
- name: make check
2828
run: |
2929
make check
30+
31+
make-linkcheck:
32+
name: make linkcheck
33+
runs-on: ubuntu-latest
34+
steps:
35+
- uses: actions/checkout@v2
36+
with:
37+
ref: ${{ github.event.pull_request.head.sha }}
38+
- uses: actions/setup-python@v1
39+
with:
40+
python-version: 3.6
41+
- name: install dependencies
42+
run: |
43+
pip3 install --upgrade -r ./requirements.txt
44+
- name: make linkcheck
45+
run: |
46+
make linkcheck

0 commit comments

Comments
 (0)