Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

added startup msg at auth #3

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 18 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,25 @@
name : tests
name: Run Tests on Pull Request

on:
pull_request
pull_request:
branches:
- main

jobs:

build:
runs-on: ubuntu-latest

steps:
- uses: action/checkout@v2
- run : cd auth && yarn install && yarn run test:ci


- name: Checkout code
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: "16" # Replace this with the version of Node.js your project requires

- name: Install Yarn dependencies in auth folder
run: cd auth && yarn install

- name: Run tests in auth folder
run: cd auth && yarn test:ci
2 changes: 1 addition & 1 deletion auth/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"scripts": {
"start": "ts-node-dev src/index.ts",
"test": "jest --watchAll --no-cache",
"test:ci": "jest --testTimeout=30000"
"test:ci": "jest"
},
"jest": {
"preset": "ts-jest",
Expand Down
1 change: 1 addition & 0 deletions auth/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import app from "./app";
//mongodb
const start = async () => {
try {
console.log("Starting up auth service...");
if (!process.env.JWT_SECRET || !process.env.MONGO_URI) {
throw new HttpException(500, " env must be defined");
}
Expand Down
Loading