Skip to content

Delete quirknotes/backend/package-lock.json #5

Delete quirknotes/backend/package-lock.json

Delete quirknotes/backend/package-lock.json #5

Workflow file for this run

This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
name: Node.js CI

Check failure on line 4 in .github/workflows/node.js.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/node.js.yml

Invalid workflow file

You have an error in your yaml syntax on line 4
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]
steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
mongodb-version: ['latest']
- name: MongoDB in GitHub Actions
uses: supercharge/[email protected]
with:
mongodb-version: ${{matrix.mongodb-version}}
- name: mongo
uses: supercharge/[email protected]
with:
mongodb-version: ${{matrix.mongodb-version}}
- run: npm i
- run: npm run dev & npm test