Skip to content

Commit e2077be

Browse files
committed
ci: Add CI job to check manpage is up-to-date
Add a simple CI job to check that the comitted manpage is up-to-date. Signed-off-by: Christopher Obbard <obbardc@debian.org>
1 parent 94462e3 commit e2077be

2 files changed

Lines changed: 37 additions & 0 deletions

File tree

.github/workflows/python-app.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,25 @@ jobs:
4949
run: |
5050
pre-commit run --all-files --show-diff-on-failure
5151
52+
manpage:
53+
name: Check manpage is in sync
54+
runs-on: ubuntu-22.04
55+
needs:
56+
- commit-validation
57+
58+
steps:
59+
- uses: actions/checkout@v5
60+
- name: Install pandoc
61+
run: |
62+
sudo apt update
63+
sudo apt install -y pandoc
64+
- name: Regenerate manpage
65+
run: |
66+
make docs/fluster.1
67+
- name: Ensure generated manpage is up-to-date
68+
run: |
69+
git diff --exit-code -- docs/fluster.1
70+
5271
min_linux:
5372
name: linux with min supported deps
5473
runs-on: ubuntu-22.04

.github/workflows/release.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,23 @@ on:
99
- 'v*.*.*'
1010

1111
jobs:
12+
manpage:
13+
name: Check manpage is in sync
14+
runs-on: ubuntu-22.04
15+
16+
steps:
17+
- uses: actions/checkout@v5
18+
- name: Install pandoc
19+
run: |
20+
sudo apt update
21+
sudo apt install -y pandoc
22+
- name: Regenerate manpage
23+
run: |
24+
make docs/fluster.1
25+
- name: Ensure generated manpage is up-to-date
26+
run: |
27+
git diff --exit-code -- docs/fluster.1
28+
1229
min_linux:
1330
name: linux with min supported deps
1431
runs-on: ubuntu-22.04
@@ -110,6 +127,7 @@ jobs:
110127
runs-on: ubuntu-22.04
111128
concurrency: create_release
112129
needs:
130+
- manpage
113131
- min_linux
114132
- linux
115133
- windows

0 commit comments

Comments
 (0)