chore: auto-close stale issues #152
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Checks | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
pull_request_target: | |
branches: | |
- main | |
permissions: {} | |
jobs: | |
check-style: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: GitHubSecurityLab/actions-permissions/monitor@v1 | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
cache: "npm" | |
- name: Install dependencies | |
run: npm ci | |
- name: Run style check | |
run: npm run check | |
check-generate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: GitHubSecurityLab/actions-permissions/monitor@v1 | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
cache: "npm" | |
- name: Install dependencies | |
run: npm ci | |
- run: npm run generate | |
check-dep: | |
name: Check dependencies | |
runs-on: ubuntu-latest | |
steps: | |
- uses: GitHubSecurityLab/actions-permissions/monitor@v1 | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version-file: package.json | |
cache: "npm" | |
- name: Install dependencies, build and remove dev dependencies | |
run: | | |
npm ci | |
rm -rf node_modules | |
npm pkg set scripts.prepare="exit 0" | |
npm install --omit=dev | |
- run: npx -y @modelcontextprotocol/inspector --cli --method tools/list -- node dist/index.js --connectionString "mongodb://localhost" |