Skip to content

Commit 6b2ad7a

Browse files
authored
Merge branch 'main' into ni/telemetry-app-name
2 parents 52c8c0c + 8760d86 commit 6b2ad7a

File tree

6 files changed

+113
-92
lines changed

6 files changed

+113
-92
lines changed

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

Lines changed: 22 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,21 @@ 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 and remove dev dependencies
53+
run: |
54+
npm ci
55+
rm -rf node_modules
56+
npm pkg set scripts.prepare="exit 0"
57+
npm install --omit=dev
58+
- run: npx -y @modelcontextprotocol/inspector --cli --method tools/list -- node dist/index.js --connectionString "mongodb://localhost"

.github/workflows/code_health.yaml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -62,26 +62,6 @@ 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-
8565
coverage:
8666
name: Report Coverage
8767
if: always() && github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository

.github/workflows/code_health_fork.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,6 @@ jobs:
4242
permissions:
4343
pull-requests: write
4444
contents: write
45-
needs:
46-
- run-tests
4745
steps:
4846
- name: Enable auto-merge for Dependabot PRs
4947
run: gh pr merge --auto --squash "$PR_URL"

.vscode/extensions.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations.
3+
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp
4+
5+
// List of extensions which should be recommended for users of this workspace.
6+
"recommendations": ["firsttris.vscode-jest-runner", "orta.vscode-jest"],
7+
// List of extensions recommended by VS Code that should not be recommended for users of this workspace.
8+
"unwantedRecommendations": []
9+
}

.vscode/settings.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"jestrunner.jestCommand": "npm test --",
3+
"jestrunner.debugOptions": {
4+
"runtimeExecutable": "node",
5+
"runtimeArgs": [
6+
"--experimental-vm-modules",
7+
"node_modules/jest/bin/jest.js",
8+
"--coverage"
9+
]
10+
}
11+
}

package-lock.json

Lines changed: 71 additions & 69 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)