Skip to content

Update dev deps.

Update dev deps. #470

Workflow file for this run

name: Bedrock Node.js CI
on: [push]
jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 10
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 }}
- run: npm install
- name: Run eslint
run: npm run lint
test-karma:
needs: [lint]
runs-on: ubuntu-latest
timeout-minutes: 10
services:
mongodb:
image: mongo:5
ports:
- 27017:27017
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 }}
- run: |
npm install
cd test
npm install
- name: Run test with Node.js ${{ matrix.node-version }} and Karma
run: |
cd test
npm test
coverage:
needs: [test-karma]
runs-on: ubuntu-latest
timeout-minutes: 10
services:
mongodb:
image: mongo:5
ports:
- 27017:27017
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 }}
- run: |
npm install
cd test
npm install
- name: Generate coverage report
run: |
cd test
npm run coverage-ci