3434 run : npm ci
3535 - name : Run tests
3636 run : npm test
37+ env :
38+ SKIP_ATLAS_TESTS : " true"
39+ SKIP_ATLAS_LOCAL_TESTS : " true"
3740 - name : Upload test results
3841 if : always() && matrix.os == 'ubuntu-latest'
3942 uses : actions/upload-artifact@v4
@@ -59,19 +62,41 @@ jobs:
5962 MDB_MCP_API_CLIENT_ID : ${{ secrets.TEST_ATLAS_CLIENT_ID }}
6063 MDB_MCP_API_CLIENT_SECRET : ${{ secrets.TEST_ATLAS_CLIENT_SECRET }}
6164 MDB_MCP_API_BASE_URL : ${{ vars.TEST_ATLAS_BASE_URL }}
62- run : npm test -- tests/integration/tools/atlas
65+ run : npm test -- tests/integration/tools/atlas/
6366 - name : Upload test results
6467 uses : actions/upload-artifact@v4
6568 if : always()
6669 with :
6770 name : atlas-test-results
6871 path : coverage/lcov.info
6972
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+
7095 coverage :
7196 name : Report Coverage
7297 if : always() && (github.event_name == 'push' || (github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository))
7398 runs-on : ubuntu-latest
74- needs : [run-tests, run-atlas-tests]
99+ needs : [run-tests, run-atlas-tests, run-atlas-local-tests ]
75100 steps :
76101 - uses : actions/checkout@v5
77102 - uses : actions/setup-node@v6
@@ -90,6 +115,11 @@ jobs:
90115 with :
91116 name : atlas-test-results
92117 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
93123 - name : Merge coverage reports
94124 run : |
95125 npx -y lcov-result-merger@5.0.1 "coverage/*/lcov.info" "coverage/lcov.info"
0 commit comments