Delete quirknotes/backend/package-lock.json #5
Workflow file for this run
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
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 | ||
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 |