Skip to content

fixing deploy script #12

fixing deploy script

fixing deploy script #12

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:
- name: Configure AWS Credentials
uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_SECRET_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: us-east-1
- 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