-
Notifications
You must be signed in to change notification settings - Fork 2
61 lines (50 loc) · 1.75 KB
/
ci.yml
File metadata and controls
61 lines (50 loc) · 1.75 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
name: CI
# Budget-friendly trigger surface. Branch protection on `main` forces
# all changes through a PR, so PR-time CI is sufficient — post-merge
# `push: main` CI was pure duplication and is dropped here. Run a full
# matrix on-demand via the workflow_dispatch trigger, or weekly via
# `ci-full.yml`.
on:
pull_request:
branches:
- main
types: [opened, reopened, synchronize, ready_for_review]
paths-ignore:
- '**/*.md'
- 'docs/**'
- 'openspec/**'
- '.github/ISSUE_TEMPLATE/**'
- '.github/PULL_REQUEST_TEMPLATE.md'
- '.changeset/**'
workflow_dispatch:
permissions:
contents: read
# One in-flight run per ref. Rapid pushes to an agent PR cancel the
# prior run instead of letting both finish on Actions minutes.
concurrency:
group: ci-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
test:
name: test (node 20)
# Draft PRs skip CI to save minutes during in-flight agent work.
# CI auto-fires on `ready_for_review`.
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Node
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
with:
node-version: 20
- name: Install
run: npm install --ignore-scripts
- name: Unit tests
run: npm test
- name: Static check CLI entrypoint
run: node --check bin/multiagent-safety.js
- name: Check scripts/ ↔ templates/scripts/ symlink parity
run: bash scripts/check-script-symlinks.sh
- name: Package dry run
run: npm pack --dry-run