Skip to content

refactor: move configuration to be passed (#101) #365

refactor: move configuration to be passed (#101)

refactor: move configuration to be passed (#101) #365

Workflow file for this run

---
name: Code Health
on:
push:
branches:
- main
pull_request:
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
- name: Run style check
run: npm run generate
run-tests:
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
if: matrix.os != 'windows-latest'
- 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 tests
env:
MDB_MCP_API_CLIENT_ID: ${{ secrets.TEST_ATLAS_CLIENT_ID }}
MDB_MCP_API_CLIENT_SECRET: ${{ secrets.TEST_ATLAS_CLIENT_SECRET }}
MDB_MCP_API_BASE_URL: ${{ vars.TEST_ATLAS_BASE_URL }}
run: npm test
- name: Coveralls GitHub Action
uses: coverallsapp/[email protected]
if: matrix.os == 'ubuntu-latest'
with:
file: coverage/lcov.info
git-branch: ${{ github.head_ref || github.ref_name }}
git-commit: ${{ github.event.pull_request.head.sha || github.sha }}