@@ -12,14 +12,21 @@ jobs:
12
12
build :
13
13
name : " Build"
14
14
15
- runs-on : " ubuntu-20 .04"
15
+ runs-on : " ubuntu-24 .04"
16
16
17
17
strategy :
18
18
matrix :
19
19
language :
20
20
- " ja"
21
21
22
22
steps :
23
+ - name : " Set up PHP"
24
+ uses : " shivammathur/setup-php@v2"
25
+ with :
26
+ php-version : " 8.3"
27
+ extensions : " sqlite3"
28
+ coverage : " none"
29
+
23
30
- name : " Checkout php/doc-${{ matrix.language }}"
24
31
uses : " actions/checkout@v4"
25
32
with :
39
46
path : " doc-base"
40
47
repository : " php/doc-base"
41
48
49
+ - name : " Checkout php/phd"
50
+ uses : " actions/checkout@v4"
51
+ with :
52
+ path : " phd"
53
+ repository : " php/phd"
54
+
42
55
- name : " Build documentation for ${{ matrix.language }}"
43
- run : " php8.0 doc-base/configure.php --disable-libxml-check --enable-xml-details --redirect-stderr-to-stdout --with-lang=${{ matrix.language }}"
56
+ run : " php doc-base/configure.php --disable-libxml-check --enable-xml-details --redirect-stderr-to-stdout --with-lang=${{ matrix.language }}"
57
+
58
+ - name : " Render documentation for ${{ matrix.language }}"
59
+ run : " php phd/render.php --docbook doc-base/.manual.xml --package PHP --format xhtml"
60
+
61
+ - name : " Save documentation for ${{ matrix.language }}"
62
+ uses : " actions/upload-artifact@v4"
63
+ with :
64
+ name : " manual-html"
65
+ path : " output/php-chunked-xhtml"
66
+ retention-days : 7
67
+
68
+ textlint :
69
+ name : " Textlint"
70
+
71
+ needs : ["build"]
72
+ runs-on : " ubuntu-24.04"
73
+
74
+ steps :
75
+ - name : " Checkout"
76
+ uses : " actions/checkout@v4"
77
+
78
+ - name : " Install Node.js"
79
+ uses : " actions/setup-node@v4"
80
+ with :
81
+ node-version : " 22"
82
+ cache : " npm"
83
+ cache-dependency-path : " build/package-lock.json"
84
+
85
+ - name : " Download artifacts"
86
+ uses : " actions/download-artifact@v4"
87
+ with :
88
+ name : " manual-html"
89
+ path : " build/output"
90
+
91
+ - name : " Install textlint"
92
+ run : " npm ci --no-audit"
93
+ working-directory : " build"
94
+
95
+ - name : " Run textlint"
96
+ run : " npx textlint --color ./output"
97
+ working-directory : " build"
0 commit comments