Skip to content

Refactor deployment workflow for Python and Node.js APIs #753

Refactor deployment workflow for Python and Node.js APIs

Refactor deployment workflow for Python and Node.js APIs #753

Workflow file for this run

name: Run Tests
on:
pull_request:
branches: [main, development]
env:
CI: true
USER_POOL_ID: ${{ secrets.USER_POOL_ID }}
jobs:
frontend_tests:
name: Run Frontend Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install dependencies
working-directory: frontend
run: npm ci
- name: Run All Frontend Unit & Integration tests
working-directory: frontend
run: npm test
nodejs_backend_tests:
name: Run Nodejs Backend Tests
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
- name: Install dependencies
working-directory: nodejs_api
run: npm ci
- name: Run All Nodejs Backend Unit & Integration tests
working-directory: nodejs_api
run: npm test