Skip to content

Commit

Permalink
feat(email-integration): implement email integration
Browse files Browse the repository at this point in the history
-implement email verification
- implement two factor authentication
- add swagger documentation
- refactor tests to run in a docker container

[Delivers #4]
  • Loading branch information
jkarenzi committed Jun 13, 2024
1 parent c1d809f commit 55fee53
Show file tree
Hide file tree
Showing 18 changed files with 683 additions and 121 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/CI.yaml

This file was deleted.

50 changes: 50 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: CI for taskMaster Project

on:
push:
branches: ['develop']
pull_request:
branches: ['develop']

jobs:
test:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [20.x]

steps:
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
- run: npm ci
- run: npm run build

- name: Set up Docker Compose
run: sudo apt-get install docker-compose

- name: Build and run tests
run: docker-compose -f docker-compose.test.yml up --build --abort-on-container-exit --exit-code-from test

- run: npm run lint
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: jkarenzi/task-master-be
directory: coverage/
- name: Spin down docker containers
if: always()
run: docker-compose -f docker-compose.test.yml down
env:
JWT_SECRET: ${{ secrets.JWT_SECRET }}
EMAIL: ${{ secrets.EMAIL }}
EMAIL_PASS: ${{ secrets.EMAIL_PASS }}
MONGO_URL: ${{ secrets.MONGO_URL }}
DB_NAME: ${{ secrets.DB_NAME }}
MONGO_INITDB_ROOT_USERNAME: ${{ secrets.MONGO_INITDB_ROOT_USERNAME }}
MONGO_INITDB_ROOT_PASSWORD: ${{ secrets.MONGO_INITDB_ROOT_PASSWORD }}
10 changes: 10 additions & 0 deletions Dockerfile.test
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM node:latest

WORKDIR /usr/src/app

COPY package*.json ./
RUN npm ci

COPY . .

CMD ["npm", "run", "test:ci"]
Loading

0 comments on commit 55fee53

Please sign in to comment.