aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/man-examples.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/man-examples.yml')
-rw-r--r--.github/workflows/man-examples.yml35
1 files changed, 35 insertions, 0 deletions
diff --git a/.github/workflows/man-examples.yml b/.github/workflows/man-examples.yml
new file mode 100644
index 000000000..6f0d1e8ae
--- /dev/null
+++ b/.github/workflows/man-examples.yml
@@ -0,0 +1,35 @@
+# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
+#
+# SPDX-License-Identifier: curl
+
+name: manpage examples
+
+on:
+ push:
+ branches:
+ - master
+ - '*/ci'
+ paths:
+ - 'docs/libcurl/curl_*.3'
+ - 'docs/libcurl/opts/*.3'
+ - '.github/scripts/verify-examples.pl'
+ pull_request:
+ branches:
+ - master
+ paths:
+ - 'docs/libcurl/curl_*.3'
+ - 'docs/libcurl/opts/*.3'
+ - '.github/scripts/verify-examples.pl'
+
+jobs:
+ verify:
+ runs-on: ubuntu-latest
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v4
+
+ - name: render nroff versions
+ run: autoreconf -fi && ./configure --without-ssl --without-libpsl && make -C docs
+
+ - name: verify examples
+ run: ./.github/scripts/verify-examples.pl docs/libcurl/curl*.3 docs/libcurl/opts/*.3