Skip to content

Commit 6adc3d8

Browse files
committed
fix: fork checks
1 parent 59e2511 commit 6adc3d8

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/lint.yml renamed to .github/workflows/check.yml

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,13 @@
11
---
2-
name: Lint
2+
name: Checks
33
on:
44
push:
55
branches:
66
- main
77
pull_request:
8+
pull_request_target:
9+
branches:
10+
- main
811

912
permissions: {}
1013

@@ -35,3 +38,22 @@ jobs:
3538
- name: Install dependencies
3639
run: npm ci
3740
- run: npm run generate
41+
42+
check-dep:
43+
name: Check dependencies
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
47+
- uses: actions/checkout@v4
48+
- uses: actions/setup-node@v4
49+
with:
50+
node-version-file: package.json
51+
cache: "npm"
52+
- name: Install dependencies & build
53+
run: npm ci
54+
- name: Remove dev dependencies
55+
run: |
56+
rm -rf node_modules
57+
npm pkg set scripts.prepare="exit 0"
58+
npm install --omit=dev
59+
- run: npx -y @modelcontextprotocol/inspector --cli --method tools/list -- node dist/index.js --connectionString "mongodb://localhost"

0 commit comments

Comments
 (0)