29
29
run : npm ci
30
30
- name : Run tests
31
31
run : npm test
32
+ env :
33
+ SKIP_ATLAS_LOCAL_TESTS : " true"
32
34
- name : Upload test results
33
35
if : always() && matrix.os == 'ubuntu-latest'
34
36
uses : actions/upload-artifact@v4
@@ -54,19 +56,41 @@ jobs:
54
56
MDB_MCP_API_CLIENT_ID : ${{ secrets.TEST_ATLAS_CLIENT_ID }}
55
57
MDB_MCP_API_CLIENT_SECRET : ${{ secrets.TEST_ATLAS_CLIENT_SECRET }}
56
58
MDB_MCP_API_BASE_URL : ${{ vars.TEST_ATLAS_BASE_URL }}
57
- run : npm test -- tests/integration/tools/atlas
59
+ run : npm test -- tests/integration/tools/atlas/
58
60
- name : Upload test results
59
61
uses : actions/upload-artifact@v4
60
62
if : always()
61
63
with :
62
64
name : atlas-test-results
63
65
path : coverage/lcov.info
64
66
67
+ run-atlas-local-tests :
68
+ name : Run Atlas Local tests
69
+ if : github.event_name == 'push' || (github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository)
70
+ runs-on : ubuntu-latest
71
+ steps :
72
+ - uses : GitHubSecurityLab/actions-permissions/monitor@v1
73
+ - uses : actions/checkout@v5
74
+ - uses : actions/setup-node@v4
75
+ with :
76
+ node-version-file : package.json
77
+ cache : " npm"
78
+ - name : Install dependencies
79
+ run : npm ci
80
+ - name : Run tests
81
+ run : npm test -- tests/integration/tools/atlas-local/
82
+ - name : Upload test results
83
+ uses : actions/upload-artifact@v4
84
+ if : always()
85
+ with :
86
+ name : atlas-local-test-results
87
+ path : coverage/lcov.info
88
+
65
89
coverage :
66
90
name : Report Coverage
67
91
if : always() && (github.event_name == 'push' || (github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository))
68
92
runs-on : ubuntu-latest
69
- needs : [run-tests, run-atlas-tests]
93
+ needs : [run-tests, run-atlas-tests, run-atlas-local-tests ]
70
94
steps :
71
95
- uses : actions/checkout@v5
72
96
- uses : actions/setup-node@v4
@@ -85,6 +109,11 @@ jobs:
85
109
with :
86
110
name : atlas-test-results
87
111
path : coverage/atlas
112
+ - name : Download atlas local test results
113
+ uses : actions/download-artifact@v5
114
+ with :
115
+ name : atlas-local-test-results
116
+ path : coverage/atlas-local
88
117
- name : Merge coverage reports
89
118
run : |
90
119
npx -y [email protected] "coverage/*/lcov.info" "coverage/lcov.info"
0 commit comments