]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
GHA/man-examples: verify libcurl man page examples
authorDaniel Stenberg <daniel@haxx.se>
Mon, 4 Dec 2023 09:50:42 +0000 (10:50 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 4 Dec 2023 09:50:42 +0000 (10:50 +0100)
.github/workflows/man-examples.yml [new file with mode: 0644]

diff --git a/.github/workflows/man-examples.yml b/.github/workflows/man-examples.yml
new file mode 100644 (file)
index 0000000..126e989
--- /dev/null
@@ -0,0 +1,30 @@
+# 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'
+  pull_request:
+    branches:
+    - master
+    paths:
+    - 'docs/libcurl/curl_*.3'
+    - 'docs/libcurl/opts/*.3'
+
+jobs:
+  verify:
+    runs-on: ubuntu-latest
+    steps:
+      - name: Checkout
+        uses: actions/checkout@v3
+
+      - name: verify examples
+        run: ./.github/scripts/verify-examples.pl docs/libcurl/curl*.3 docs/libcurl/opts/*.3