-
Notifications
You must be signed in to change notification settings - Fork 0
142 lines (119 loc) · 3.6 KB
/
Copy pathci.yml
File metadata and controls
142 lines (119 loc) · 3.6 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
135
136
137
138
139
140
141
142
name: CI
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
# Fast structural feedback; the final quality job aggregates every required gate.
validate:
name: validate
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- name: Set up Node.js
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
with:
node-version: 22
- name: Validate repository layout
run: npm run validate
test:
name: Node ${{ matrix.node }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
timeout-minutes: 10
strategy:
fail-fast: false
matrix:
include:
- os: ubuntu-latest
node: 20
- os: ubuntu-latest
node: 22
- os: ubuntu-latest
node: 24
- os: windows-latest
node: 22
- os: macos-latest
node: 22
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- name: Set up Node.js
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
with:
node-version: ${{ matrix.node }}
- name: Run tests
run: npm test
specification:
name: Agent Skills specification and discovery
runs-on: ubuntu-latest
timeout-minutes: 10
permissions:
contents: read
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6
with:
python-version: "3.13"
- name: Install official reference validator
run: >-
python -m pip install --disable-pip-version-check --only-binary=:all:
--require-hashes -r requirements-validation.txt
- name: Validate Agent Skill specification
run: agentskills validate "$GITHUB_WORKSPACE/skills/agentic-rd-skill"
- name: Validate GitHub skill discovery
env:
GH_TOKEN: ${{ github.token }}
run: gh skill publish --dry-run
performance:
name: CLI performance guardrail
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7
with:
persist-credentials: false
- name: Set up Node.js
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6
with:
node-version: 22
- name: Run realistic workflow benchmark
run: npm run benchmark
quality:
name: quality
if: always()
needs:
- validate
- test
- specification
- performance
runs-on: ubuntu-latest
timeout-minutes: 2
steps:
- name: Require every quality job to pass
env:
VALIDATE_RESULT: ${{ needs.validate.result }}
TEST_RESULT: ${{ needs.test.result }}
SPECIFICATION_RESULT: ${{ needs.specification.result }}
PERFORMANCE_RESULT: ${{ needs.performance.result }}
run: |
test "$VALIDATE_RESULT" = success
test "$TEST_RESULT" = success
test "$SPECIFICATION_RESULT" = success
test "$PERFORMANCE_RESULT" = success