Skip to content

finish up deployments #78

finish up deployments

finish up deployments #78

name: Backend Unit Tests
on:
workflow_call:
pull_request:
branches:
- main
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
env:
NODE_ENV: test
DB_HOST: ${{ secrets.DB_HOST }}
DB_USER: ${{ secrets.DB_USER }}
DB_PASS: ${{ secrets.DB_PASS }}
DB_NAME: ${{ secrets.DB_NAME }}
DB_PORT: ${{ secrets.DB_PORT }}
TEST_SCHEMA: ${{ secrets.TEST_SCHEMA }}
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 20
- name: Navigate to app directory
run: cd app
- name: Install dependencies
run: npm ci
working-directory: ./app
- name: Run tests
run: npm test
working-directory: ./app