mirror of
https://github.com/cockpit-project/cockpit.git
synced 2026-11-03 21:49:50 -09:00
doc: Verify Antora builds
Although we don't actively use Antora in Cockpit, our website docs will depend on it working. If the GitHub workflow fails it is likely something we need to address before merging to ensure that Cockpit Docs functions as expected. Signed-off-by: Freya Gustavsson <freya@venefilyn.se>
This commit is contained in:
parent
c3d192098b
commit
7d64ba32ff
1 changed files with 32 additions and 0 deletions
32
.github/workflows/verify-antora.yml
vendored
Normal file
32
.github/workflows/verify-antora.yml
vendored
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
name: verify-antora
|
||||
on:
|
||||
pull_request:
|
||||
# Only run when a file has changed in doc/ directory
|
||||
paths:
|
||||
- doc/**
|
||||
branches:
|
||||
- main
|
||||
jobs:
|
||||
verify-antora:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v6
|
||||
|
||||
- name: Setup PNPM
|
||||
uses: pnpm/action-setup@v4
|
||||
with:
|
||||
version: 10
|
||||
|
||||
- name: Setup Node with Cache
|
||||
uses: actions/setup-node@v6
|
||||
with:
|
||||
node-version: 'latest'
|
||||
cache: 'pnpm'
|
||||
cache-dependency-path: '**/.github/workflows/*.yml'
|
||||
|
||||
- name: Verify Antora can build
|
||||
run: pnpx antora antora-playbook.yml
|
||||
|
||||
- name: Show generated Antora files
|
||||
run: tree doc/output/antora/ -h
|
||||
Loading…
Reference in a new issue