-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (45 loc) · 1.3 KB
/
Copy pathvalidate.yml
File metadata and controls
57 lines (45 loc) · 1.3 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
name: Validate Hugo content
on:
push:
branches: [main]
# dev.toの状態台帳だけのbot commitでは再ビルドしない。
# articles/・同期/転載スクリプトの変更は検査対象に含める。
paths-ignore:
- 'books/**'
- 'crossposted-devto.json'
permissions:
contents: read
concurrency:
group: content-validation
cancel-in-progress: false
jobs:
validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
submodules: true
fetch-depth: 0
- name: Setup Hugo
uses: peaceiris/actions-hugo@v3
with:
hugo-version: '0.164.0'
extended: true
- name: Setup Node
uses: actions/setup-node@v5
with:
node-version: '20'
- name: Install pipeline test dependencies
run: npm ci
working-directory: .github/scripts
- name: Test content pipeline
run: npm test
working-directory: .github/scripts
- name: Validate content
run: node tools/validate-content.mjs
- name: Check Zenn synchronization
run: node tools/zenn-sync/sync.mjs --check
- name: Build
run: hugo --minify
- name: Validate rendered articles
run: node tools/validate-content.mjs --rendered