Skip to content

Commit 14741c7

Browse files
committed
ci: test to check dependencies
1 parent faf26b0 commit 14741c7

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/code_health.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,26 @@ jobs:
6262
name: atlas-test-results
6363
path: coverage/lcov.info
6464

65+
dep-check:
66+
name: Check dependencies
67+
if: github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository
68+
runs-on: ubuntu-latest
69+
steps:
70+
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
71+
- uses: actions/checkout@v4
72+
- uses: actions/setup-node@v4
73+
with:
74+
node-version-file: package.json
75+
cache: "npm"
76+
- name: Install dependencies & build
77+
run: npm ci
78+
- name: Remove dev dependencies
79+
run: |
80+
rm -rf node_modules
81+
npm pkg set scripts.prepare="exit 0"
82+
npm install --omit=dev
83+
- run: npx -y @modelcontextprotocol/inspector --cli --method tools/list -- node dist/index.js --connectionString "mongodb://localhost"
84+
6585
coverage:
6686
name: Report Coverage
6787
if: always() && github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository

0 commit comments

Comments
 (0)