lint and test #3
This file contains 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: lint-and-test | |
run-name: lint and test | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["*"] | |
jobs: | |
lint-and-test: | |
name: Lint and Test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 22 | |
- name: Set up MongoDB | |
uses: supercharge/mongodb-github-action@v1 | |
with: | |
mongodb-version: 7 | |
- name: Install Dependencies | |
run: npm install | |
- name: Run ESLint | |
run: npm run eslint | |
- name: Run Mocha Tests | |
run: npm run mocha |