Skip to content

Created PDXE pipeline tab #109

Created PDXE pipeline tab

Created PDXE pipeline tab #109

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