Skip to content

Add publishing workflow; update workflow, dependencies, tasks, docs #70

Add publishing workflow; update workflow, dependencies, tasks, docs

Add publishing workflow; update workflow, dependencies, tasks, docs #70

Workflow file for this run

on:
push:
branches:
- main
pull_request:
jobs:
test:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [12, 14, 16]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: npm ci
- run: make lint
- run: make test-unit
- name: Supply MongoDB 3.4
uses: supercharge/mongodb-github-action@1.3.0
with:
mongodb-version: 3.4
- name: Supply integration test configuration file
run: cp config/test.sample.json config/test.json
- name: Make webservice available to be integration-tested
run: NODE_ENV=test node index.js &
- run: sleep 10s
- run: make test-integration