Skip to content

Commit 7da744d

Browse files
author
StackMemory Bot (CLI)
committed
chore: docs/CI cleanup, coverage, verify-dist, MCP path fixes
1 parent a4a7a21 commit 7da744d

15 files changed

Lines changed: 472 additions & 411 deletions
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Coverage Only
2+
3+
on:
4+
workflow_dispatch:
5+
6+
jobs:
7+
coverage:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v4
12+
13+
- name: Setup Node.js
14+
uses: actions/setup-node@v4
15+
with:
16+
node-version: '20'
17+
cache: 'npm'
18+
19+
- name: Install dependencies
20+
run: npm ci
21+
22+
- name: Build
23+
run: npm run build
24+
25+
- name: Run tests with coverage
26+
run: npm run test:run -- --coverage
27+
env:
28+
CI: true
29+
30+
- name: Upload coverage reports to Codecov
31+
uses: codecov/codecov-action@v5
32+
with:
33+
token: ${{ secrets.CODECOV_TOKEN }}
34+
files: ./coverage/coverage-final.json
35+
flags: unit
36+
fail_ci_if_error: false
37+
verbose: true
38+

.github/workflows/npm-publish.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ jobs:
2929
- name: Build
3030
run: npm run build
3131

32+
- name: Verify dist artifacts
33+
run: npm run verify:dist
34+
3235
- name: Run tests
3336
run: npm test
3437

@@ -49,4 +52,4 @@ jobs:
4952
## What's Changed
5053
- Check [CHANGELOG.md](https://github.com/${{ github.repository }}/blob/main/CHANGELOG.md) for details
5154
draft: false
52-
prerelease: false
55+
prerelease: false

.github/workflows/test-shared-context.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ on:
1212
- 'src/core/context/**'
1313
- 'src/core/session/**'
1414
- 'src/cli/**'
15+
workflow_dispatch:
1516

1617
jobs:
1718
test:
@@ -36,6 +37,9 @@ jobs:
3637
- name: Build project
3738
run: npm run build
3839

40+
- name: Verify dist artifacts
41+
run: npm run verify:dist
42+
3943
- name: Run shared context tests
4044
run: npm run test:shared-context
4145
env:
@@ -45,6 +49,22 @@ jobs:
4549
run: npm run test:run
4650
env:
4751
CI: true
52+
53+
- name: Generate coverage (Node 20 only)
54+
if: matrix.node-version == '20.x'
55+
run: npm run test:run -- --coverage
56+
env:
57+
CI: true
58+
59+
- name: Upload coverage reports to Codecov
60+
if: matrix.node-version == '20.x'
61+
uses: codecov/codecov-action@v5
62+
with:
63+
token: ${{ secrets.CODECOV_TOKEN }}
64+
files: ./coverage/coverage-final.json
65+
flags: unit
66+
fail_ci_if_error: false
67+
verbose: true
4868

4969
- name: Upload test results
5070
if: always()
@@ -74,6 +94,9 @@ jobs:
7494
- name: Build project
7595
run: npm run build
7696

97+
- name: Verify dist artifacts
98+
run: npm run verify:dist
99+
77100
- name: Test CLI integration
78101
run: |
79102
# Initialize test project
@@ -100,4 +123,4 @@ jobs:
100123
else
101124
echo "❌ Shared context directory not found"
102125
exit 1
103-
fi
126+
fi

0 commit comments

Comments
 (0)