Bump body-parser and express in /client #113
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
name: Test public API endpoints | |
# Define an event (or events) that triggers this workflow. | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
name: Server Unit Tests | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
strategy: | |
matrix: | |
node-version: [12.x] | |
# Define the steps in this workflow. | |
steps: | |
- uses: actions/checkout@v1 | |
# 1. Specify the node version and environment the tests will be run on. | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
# 2. Run npm install. | |
- name: Install | |
run: npm install | |
# 3. Run tests. | |
- name: Test | |
# You can import environment varialbes by saving them to repository secrets. | |
env: | |
CONNECTION_STR: ${{ secrets.CONNECTION_STR }} | |
DB: ${{ secrets.DB }} | |
DEFAULT_DATA_VERSION: ${{ secrets.DEFAULT_DATA_VERSION }} | |
run: npm test |