Skip to content

Patient CI

Patient CI #367

# This workflow will do a clean installation of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-nodejs
name: Patient CI
on:
workflow_run:
workflows: ["Authentication CI"]
types:
- completed
jobs:
lint-and-test-patient:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 16
- name: Install dependencies (Patient Microservice)
run: npm ci
working-directory: patient
- name: Run ESLint (Patient Microservice)
run: npm run lint
working-directory: patient
- name: Run Tests (Patient Microservice)
run: npm run test
working-directory: patient
env:
MONGO_URI_TEST: ${{ secrets.MONGO_URI_TEST }}