Skip to content

Add Integration testing #3

Add Integration testing

Add Integration testing #3

Workflow file for this run

name: Pull Request
on:
pull_request:
branches:
- main
jobs:
unit-test-backend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
cd backend
npm install
- name: Run tests
run: |
cd backend
npm run unit-test
integration-test-backend:
runs-on: ubuntu-latest
services:
dynamodb:
image: amazon/dynamodb-local
ports:
- 8000:8000
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
cd backend
npm install
- name: Create local database tables
run: |
cd backend
npm run create-local-ddb-tables
- name: Run tests
run: |
cd backend
npm run integration-test
test-frontend:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install dependencies
run: |
cd frontend
npm install
- name: Run tests
run: |
cd frontend
npm run test