-
Notifications
You must be signed in to change notification settings - Fork 0
101 lines (97 loc) · 2.7 KB
/
Copy pathcli.yml
File metadata and controls
101 lines (97 loc) · 2.7 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
name: CLI
on:
pull_request:
paths:
- "packages/cli/**"
- "packages/ai-integrations/**"
- ".agents/**"
- ".claude/**"
- ".codex/**"
- ".cursor/**"
- ".mstack/**"
- "AGENTS.md"
- "CLAUDE.md"
- "docs/cli/**"
- "templates/**"
- "package.json"
- "pnpm-lock.yaml"
- "pnpm-workspace.yaml"
- ".github/workflows/cli.yml"
push:
branches:
- main
paths:
- "packages/cli/**"
- "packages/ai-integrations/**"
- ".agents/**"
- ".claude/**"
- ".codex/**"
- ".cursor/**"
- ".mstack/**"
- "AGENTS.md"
- "CLAUDE.md"
- "docs/cli/**"
- "templates/**"
- "package.json"
- "pnpm-lock.yaml"
- "pnpm-workspace.yaml"
- ".github/workflows/cli.yml"
permissions:
contents: read
jobs:
validate:
strategy:
matrix:
include:
- os: ubuntu-latest
node: 20
- os: ubuntu-latest
node: 22
- os: ubuntu-latest
node: 24
- os: macos-latest
node: 22
- os: windows-latest
node: 22
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: pnpm
- run: pnpm install --frozen-lockfile
- run: pnpm typecheck
- run: pnpm test
- run: pnpm build
- name: Verify installed AI runtime integrity
if: matrix.os == 'ubuntu-latest' && matrix.node == 22
run: node packages/cli/dist/cli.js validate --strict
- if: matrix.os == 'ubuntu-latest' && matrix.node == 22
run: |
pnpm --filter @imisbahk/mstack docs:generate
git diff --exit-code -- docs/cli/command-reference.md
- run: npm pack --dry-run
working-directory: packages/cli
launchers:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- uses: actions/setup-node@v4
with:
node-version: 22
cache: pnpm
- uses: oven-sh/setup-bun@v2
- run: pnpm install --frozen-lockfile
- run: pnpm build
- name: Pack CLI
working-directory: packages/cli
run: |
PACKAGE_TARBALL="$(npm pack --ignore-scripts --silent)"
echo "PACKAGE_TARBALL=$PWD/$PACKAGE_TARBALL" >> "$GITHUB_ENV"
- run: npx --yes --package "$PACKAGE_TARBALL" mstack --version
- run: pnpm dlx "$PACKAGE_TARBALL" --version
- run: corepack yarn dlx --quiet "mstack@file:$PACKAGE_TARBALL" --version
- run: bunx --package "$PACKAGE_TARBALL" mstack --version