File tree 3 files changed +22
-23
lines changed
3 files changed +22
-23
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- name : Lint
2
+ name : Checks
3
3
on :
4
4
push :
5
5
branches :
6
6
- main
7
7
pull_request :
8
+ pull_request_target :
9
+ branches :
10
+ - main
8
11
9
12
permissions : {}
10
13
35
38
- name : Install dependencies
36
39
run : npm ci
37
40
- 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"
Original file line number Diff line number Diff line change 62
62
name : atlas-test-results
63
63
path : coverage/lcov.info
64
64
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
-
85
65
coverage :
86
66
name : Report Coverage
87
67
if : always() && github.event.pull_request.user.login != 'dependabot[bot]' && github.event.pull_request.head.repo.full_name == github.repository
Original file line number Diff line number Diff line change 42
42
permissions :
43
43
pull-requests : write
44
44
contents : write
45
- needs :
46
- - run-tests
47
45
steps :
48
46
- name : Enable auto-merge for Dependabot PRs
49
47
run : gh pr merge --auto --squash "$PR_URL"
You can’t perform that action at this time.
0 commit comments