Skip to content

Merge pull request #2 from syntaxsec/feat/test-coverage #17

Merge pull request #2 from syntaxsec/feat/test-coverage

Merge pull request #2 from syntaxsec/feat/test-coverage #17

Workflow file for this run

name: Node.js CI
on:
push:
branches: ["main"]
pull_request:
branches: ["main", "dev"]
jobs:
build:
name: Backend test
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./quirknotes/backend
strategy:
matrix:
node-version: [20.x]
mongodb-version: ['latest']
steps:
- name: Use Node.js ${{ matrix.node-version }}
# uses: actions/setup-node@v
uses: actions/checkout@v3
with:
node-version: ${{ matrix.node-version }}
- name: MongoDB in GitHub Actions
uses: supercharge/[email protected]
with:
mongodb-version: ${{matrix.mongodb-version}}
- run: npm i
- run: npm run dev & npm test