-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (62 loc) · 1.73 KB
/
ci.yml
File metadata and controls
76 lines (62 loc) · 1.73 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
name: CI
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: true
jobs:
verify:
runs-on: ubuntu-latest
steps:
- name: 1. Checkout source
uses: actions/checkout@v4
- name: 2. Setup pnpm
uses: pnpm/action-setup@v4
with:
version: 10.30.2
- name: 3. Setup Node 24
uses: actions/setup-node@v4
with:
node-version: 24
cache: pnpm
- name: 4. Install dependencies
id: install
run: pnpm install --frozen-lockfile
- name: 5. Typecheck library
id: typecheck
run: pnpm typecheck
- name: 6. Run tests
id: test
run: pnpm test
- name: 7. Build package
id: build
run: pnpm build
- name: 8. Build Docusaurus docs
id: docs
run: pnpm docs:build
- name: 9. Check bundled MCP server
id: mcp
run: pnpm mcp:check
- name: 10. Check README
id: readme
run: pnpm readme:check
- name: CI summary
if: always()
run: |
{
echo "## CI pipeline"
echo
echo "| Stage | Result |"
echo "| --- | --- |"
echo "| Install | ${{ steps.install.outcome }} |"
echo "| Typecheck | ${{ steps.typecheck.outcome }} |"
echo "| Tests | ${{ steps.test.outcome }} |"
echo "| Package build | ${{ steps.build.outcome }} |"
echo "| Docs build | ${{ steps.docs.outcome }} |"
echo "| MCP server check | ${{ steps.mcp.outcome }} |"
echo "| README check | ${{ steps.readme.outcome }} |"
} >> "$GITHUB_STEP_SUMMARY"