-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(email-integration): implement email integration
-implement email verification - implement two factor authentication - add swagger documentation - refactor tests to run in a docker container [Delivers #4]
- Loading branch information
Showing
18 changed files
with
683 additions
and
121 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"] |
Oops, something went wrong.