Skip to content

lint and test

lint and test #3

Workflow file for this run

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