xref: /curl/.github/workflows/man-examples.yml (revision ac68a2dd)
1# Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
2#
3# SPDX-License-Identifier: curl
4
5name: manpage examples
6
7on:
8  push:
9    branches:
10      - master
11      - '*/ci'
12    paths:
13      - 'docs/libcurl/curl_*.3'
14      - 'docs/libcurl/opts/*.3'
15      - '.github/scripts/verify-examples.pl'
16  pull_request:
17    branches:
18      - master
19    paths:
20      - 'docs/libcurl/curl_*.3'
21      - 'docs/libcurl/opts/*.3'
22      - '.github/scripts/verify-examples.pl'
23
24permissions: {}
25
26jobs:
27  verify:
28    runs-on: ubuntu-latest
29    steps:
30      - name: Checkout
31        uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4
32
33      - name: render nroff versions
34        run: autoreconf -fi && ./configure --without-ssl --without-libpsl && make -C docs
35
36      - name: verify examples
37        run: ./.github/scripts/verify-examples.pl docs/libcurl/curl*.3 docs/libcurl/opts/*.3
38