mirror of
https://github.com/stedolan/jq.git
synced 2024-05-11 05:55:39 +00:00
22f81401f8
Bumps [actions/setup-python](https://github.com/actions/setup-python) from 4 to 5. - [Release notes](https://github.com/actions/setup-python/releases) - [Commits](https://github.com/actions/setup-python/compare/v4...v5) --- updated-dependencies: - dependency-name: actions/setup-python dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
52 lines
1.5 KiB
YAML
52 lines
1.5 KiB
YAML
name: Building man page, man.test, manonig.test
|
|
on:
|
|
push:
|
|
paths:
|
|
- '.github/workflows/manpage.yml'
|
|
- 'docs/**'
|
|
- 'tests/man.test'
|
|
- 'tests/manonig.test'
|
|
- 'jq.1.prebuilt'
|
|
pull_request:
|
|
paths:
|
|
- '.github/workflows/manpage.yml'
|
|
- 'docs/**'
|
|
- 'tests/man.test'
|
|
- 'tests/manonig.test'
|
|
- 'jq.1.prebuilt'
|
|
|
|
jobs:
|
|
manpages:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v4
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
cache: pipenv
|
|
- name: Install pipenv
|
|
run: pip install pipenv
|
|
- name: Install dependencies
|
|
run: pipenv sync
|
|
working-directory: docs
|
|
- name: Validate manual schema
|
|
run: pipenv run python3 validate_manual_schema.py content/manual/**/*.yml
|
|
working-directory: docs
|
|
- name: Configure
|
|
run: |
|
|
autoreconf -i
|
|
./configure --enable-docs
|
|
- name: Build man page, man.test, manonig.test
|
|
run: |
|
|
mv jq.1.prebuilt jq.1.old
|
|
rm -f tests/man.test manonig.test
|
|
make jq.1.prebuilt tests/man.test tests/manonig.test
|
|
- name: Make sure that jq.1.prebuilt, man.test, manonig.test are up to date
|
|
run: |
|
|
git diff --exit-code tests/man.test tests/manonig.test
|
|
# skip build date in jq.1.prebuilt
|
|
test -s jq.1.prebuilt
|
|
diff -- <(tail -n +3 jq.1.old) <(tail -n +3 jq.1.prebuilt)
|