Skip to content

Commit 0ead016

Browse files
committed
initial commit
0 parents  commit 0ead016

33 files changed

+13928
-0
lines changed

.github/workflows/test.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [ main, master, develop ]
6+
pull_request:
7+
branches: [ main, master, develop ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
strategy:
14+
matrix:
15+
node-version: [18.x, 20.x, 22.x]
16+
17+
steps:
18+
- uses: actions/checkout@v4
19+
20+
- name: Use Node.js ${{ matrix.node-version }}
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
cache: 'npm'
25+
26+
- name: Install dependencies
27+
run: npm ci
28+
29+
- name: Run linter
30+
run: npm run lint || echo "Linting not configured"
31+
32+
- name: Build
33+
run: npm run build
34+
35+
- name: Run tests
36+
run: npm test
37+
38+
- name: Generate coverage report
39+
run: npm run test:coverage
40+
41+
- name: Upload coverage to Codecov
42+
uses: codecov/codecov-action@v4
43+
with:
44+
file: ./coverage/lcov.info
45+
flags: unittests
46+
name: codecov-umbrella
47+
fail_ci_if_error: false
48+
env:
49+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
50+
51+
- name: Archive test results
52+
if: always()
53+
uses: actions/upload-artifact@v4
54+
with:
55+
name: test-results-${{ matrix.node-version }}
56+
path: |
57+
coverage/
58+
test-results/
59+
60+
build-check:
61+
runs-on: ubuntu-latest
62+
63+
steps:
64+
- uses: actions/checkout@v4
65+
66+
- name: Use Node.js 20.x
67+
uses: actions/setup-node@v4
68+
with:
69+
node-version: 20.x
70+
cache: 'npm'
71+
72+
- name: Install dependencies
73+
run: npm ci
74+
75+
- name: Build TypeScript
76+
run: npm run build
77+
78+
- name: Check build artifacts
79+
run: |
80+
if [ ! -f "dist/index.js" ]; then
81+
echo "Build artifact dist/index.js not found"
82+
exit 1
83+
fi
84+
echo "Build successful"

.gitignore

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
node_modules/
2+
dist/
3+
*.log
4+
.DS_Store
5+
.env
6+
.env.local
7+
*.swp
8+
*.swo
9+
*~
10+
.idea/
11+
.vscode/
12+
13+
# Test coverage
14+
coverage/
15+
.nyc_output/
16+
*.lcov
17+
junit.xml
18+
test-results/
19+
20+
# Configuration files with personal paths
21+
obsidian-mcp.json
22+
23+
# Test and demo files
24+
quick-test.js
25+
demo.js
26+
test-server.js
27+
TEST_RESULTS.md

0 commit comments

Comments
 (0)