Add publishing workflow; update workflow, dependencies, tasks, docs #70
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
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 |