Repository navigation
96 lines (80 loc) · 3.13 KB
/
Copy pathdocs.yml
File metadata and controls
96 lines (80 loc) · 3.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
# SPDX-FileCopyrightText: 2026 LibreCode coop and contributors
# SPDX-License-Identifier: CC-BY-3.0
name: Documentation
on:
pull_request:
push:
branches: [main]
paths:
- '.github/workflows/docs.yml'
- '.github/workflows/deploy.yml'
- 'versioning/**'
- 'AGENTS.md'
- 'CONTRIBUTING.md'
- 'README.rst'
- 'README.md'
- 'docs/maintainers/**'
- 'assets/**'
- '_templates/**'
- 'main/**'
- 'admin_manual/**'
- 'user_manual/**'
- 'developer_manual/**'
- 'conf.py'
- 'requirements.txt'
- 'tests/**'
- 'examples/n8n/**'
permissions:
contents: read
jobs:
test:
name: Sphinx, OpenAPI, links and multiversion checks
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- name: Checkout documentation
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0
with:
python-version: '3.13'
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt openapi-spec-validator==0.7.2
- name: Test version discovery and deploy invariants
run: python -m unittest discover -s tests -v
- name: Test version selection navigation
run: node --test tests/js/*.test.mjs
- name: Test n8n workflow graph, Code nodes and WebDAV discovery
run: node --test examples/n8n/test-workflow.mjs
- name: Import workflow using real n8n 2.47.3
run: |
mkdir -p "$RUNNER_TEMP/libresign-n8n-ci"
chmod 777 "$RUNNER_TEMP/libresign-n8n-ci"
docker run --rm \
-v "$PWD/examples/n8n:/work:ro" \
-v "$RUNNER_TEMP/libresign-n8n-ci:/home/node/.n8n" \
docker.n8n.io/n8nio/n8n:2.47.3 import:workflow \
--input=/work/libresign-external-signature.json
- name: Build every Sphinx version independently
run: python -m versioning.build --output _build
- name: Check links, exact OpenAPI provenance and version isolation
run: python -m versioning.verify --output _build
- name: Check external signing guide against each pinned OpenAPI
run: |
python -c 'from pathlib import Path; from versioning.external_contract import validate_site_external_samples; print(validate_site_external_samples(Path("_build"), Path(".")))'
- name: Syntax check executable signing examples
run: |
bash -n examples/external-email-signers/flow.sh
php -l examples/external-email-signers/flow.php
for template in examples/external-email-signers/request-*.json; do
python -m json.tool "$template" >/dev/null
done
- name: Assemble complete atomic Pages candidate
run: python -m versioning.publish --built _build --destination _publish
- name: Verify deployed candidate preserves every version
run: python -m versioning.verify --output _publish