3535 - name : Run tests
3636 run : npm test
3737 env :
38- TEST_MDB_MCP_VOYAGE_API_KEY : ${{ secrets.TEST_MDB_MCP_VOYAGE_API_KEY }}
38+ SKIP_ATLAS_TESTS : " true"
39+ SKIP_ATLAS_LOCAL_TESTS : " true"
3940 - name : Upload test results
4041 if : always() && matrix.os == 'ubuntu-latest'
4142 uses : actions/upload-artifact@v4
@@ -61,19 +62,41 @@ jobs:
6162 MDB_MCP_API_CLIENT_ID : ${{ secrets.TEST_ATLAS_CLIENT_ID }}
6263 MDB_MCP_API_CLIENT_SECRET : ${{ secrets.TEST_ATLAS_CLIENT_SECRET }}
6364 MDB_MCP_API_BASE_URL : ${{ vars.TEST_ATLAS_BASE_URL }}
64- run : npm test -- tests/integration/tools/atlas
65+ run : npm test -- tests/integration/tools/atlas/
6566 - name : Upload test results
6667 uses : actions/upload-artifact@v4
6768 if : always()
6869 with :
6970 name : atlas-test-results
7071 path : coverage/lcov.info
7172
73+ run-atlas-local-tests :
74+ name : Run Atlas Local tests
75+ if : github.event_name == 'push' || (github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository)
76+ runs-on : ubuntu-latest
77+ steps :
78+ - uses : GitHubSecurityLab/actions-permissions/monitor@v1
79+ - uses : actions/checkout@v5
80+ - uses : actions/setup-node@v4
81+ with :
82+ node-version-file : package.json
83+ cache : " npm"
84+ - name : Install dependencies
85+ run : npm ci
86+ - name : Run tests
87+ run : npm test -- tests/integration/tools/atlas-local/
88+ - name : Upload test results
89+ uses : actions/upload-artifact@v4
90+ if : always()
91+ with :
92+ name : atlas-local-test-results
93+ path : coverage/lcov.info
94+
7295 coverage :
7396 name : Report Coverage
7497 if : always() && (github.event_name == 'push' || (github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository))
7598 runs-on : ubuntu-latest
76- needs : [run-tests, run-atlas-tests]
99+ needs : [run-tests, run-atlas-tests, run-atlas-local-tests ]
77100 steps :
78101 - uses : actions/checkout@v5
79102 - uses : actions/setup-node@v6
@@ -92,6 +115,11 @@ jobs:
92115 with :
93116 name : atlas-test-results
94117 path : coverage/atlas
118+ - name : Download atlas local test results
119+ uses : actions/download-artifact@v5
120+ with :
121+ name : atlas-local-test-results
122+ path : coverage/atlas-local
95123 - name : Merge coverage reports
96124 run : |
97125 npx -y [email protected] "coverage/*/lcov.info" "coverage/lcov.info"
0 commit comments