Repository navigation
134 lines (123 loc) · 4.01 KB
/
Copy pathruntime-plugin-validate.yml
File metadata and controls
134 lines (123 loc) · 4.01 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
name: Runtime plugin validation
# Pull Request では絞り込まずに常に起動する。ブランチの ruleset が必須にするチェックは、
# 変更の種類にかかわらず結果を返す必要がある。GitHub は paths で除外された実行を
# 「成功」ではなく「実行されていない」として扱うため、絞り込んだままだと対象外の変更で
# マージ可能にならない。push の側は絞り込みを残す(マージの可否を決めないため)
on:
pull_request:
push:
branches:
- main
- develop
paths:
- ".claude-plugin/**"
- ".github/workflows/runtime-plugin-validate.yml"
- ".githooks/**"
- ".ndf/**"
- "AGENTS.md"
- "CHANGELOG.md"
- "CLAUDE.md"
- "KIRO.md"
- "README.md"
- "docs/**"
- "factory/**"
- "issues/**"
- "plugins/**"
- "scripts/**"
jobs:
runtime-plugin-build-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: "22"
- uses: actions/setup-python@v7
with:
python-version: "3.x"
- run: bash scripts/build-runtime-plugins.sh --check
skill-frontmatter-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.x"
- run: python3 scripts/check-skill-frontmatter.py
skill-repo-assumptions-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.x"
- run: python3 scripts/check-skill-repo-assumptions.py
skill-shell-vars-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.x"
- run: python3 scripts/check-skill-shell-vars.py
service-boundary-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.x"
- run: python3 scripts/check-service-boundary.py
runtime-plugin-validate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-node@v7
with:
node-version: "22"
- uses: actions/setup-python@v7
with:
python-version: "3.x"
- run: npm install -g @anthropic-ai/claude-code
- run: bash scripts/validate-runtime-plugins.sh
markdown-link-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.x"
- run: python3 scripts/check-markdown-links.py --root .
doc-line-limit-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.x"
- run: python3 scripts/check-doc-line-limit.py --root .
instruction-files-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.x"
- run: python3 plugins/ndf/scripts/instructions-check.py --root .
# ワークフローのジョブから決まるチェックの名前と、宛先のブランチの必須のチェックを突き合わせる(#653)。
# 宛先のブランチは Pull Request でしか決まらないため、push では起動しない。必須の一覧は読むだけで書き込まない
required-checks-check:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v7
with:
python-version: "3.x"
- env:
GH_TOKEN: ${{ github.token }}
run: >-
python3 scripts/check-required-checks.py
--repo "${{ github.repository }}" --branch "${{ github.base_ref }}"