-
Notifications
You must be signed in to change notification settings - Fork 74
97 lines (77 loc) · 2.38 KB
/
integrate.yaml
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
97
# https://docs.github.com/en/actions
name: "Integrate"
on:
pull_request: null
push:
branches:
- "master"
jobs:
build:
name: "Build"
runs-on: "ubuntu-24.04"
strategy:
matrix:
language:
- "ja"
steps:
- name: "Set up PHP"
uses: "shivammathur/setup-php@v2"
with:
php-version: "8.3"
extensions: "sqlite3"
coverage: "none"
- name: "Checkout php/doc-${{ matrix.language }}"
uses: "actions/checkout@v4"
with:
path: "${{ matrix.language }}"
repository: "php/doc-${{ matrix.language }}"
- name: "Checkout php/doc-en as fallback"
if: "matrix.language != 'en'"
uses: "actions/checkout@v4"
with:
path: "en"
repository: "php/doc-en"
- name: "Checkout php/doc-base"
uses: "actions/checkout@v4"
with:
path: "doc-base"
repository: "php/doc-base"
- name: "Checkout php/phd"
uses: "actions/checkout@v4"
with:
path: "phd"
repository: "php/phd"
- name: "Build documentation for ${{ matrix.language }}"
run: "php doc-base/configure.php --disable-libxml-check --enable-xml-details --redirect-stderr-to-stdout --with-lang=${{ matrix.language }}"
- name: "Render documentation for ${{ matrix.language }}"
run: "php phd/render.php --docbook doc-base/.manual.xml --package PHP --format xhtml"
- name: "Save documentation for ${{ matrix.language }}"
uses: "actions/upload-artifact@v4"
with:
name: "manual-html"
path: "output/php-chunked-xhtml"
retention-days: 7
textlint:
name: "Textlint"
needs: ["build"]
runs-on: "ubuntu-24.04"
steps:
- name: "Checkout"
uses: "actions/checkout@v4"
- name: "Install Node.js"
uses: "actions/setup-node@v4"
with:
node-version: "22"
cache: "npm"
cache-dependency-path: "build/package-lock.json"
- name: "Download artifacts"
uses: "actions/download-artifact@v4"
with:
name: "manual-html"
path: "build/output"
- name: "Install textlint"
run: "npm ci --no-audit"
working-directory: "build"
- name: "Run textlint"
run: "npx textlint --color ./output"
working-directory: "build"