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

ci: added user api tests to workflow #321

Merged
merged 1 commit into from
Jan 8, 2025
Merged
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
7 changes: 5 additions & 2 deletions .github/workflows/api-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,8 @@ jobs:
- name: Lint code with ESLint
run: yarn workspace user lint

- name: Run tests
run: yarn workspace user test
- name: Run unit tests
run: yarn workspace user test:unit

- name: Run integration tests
run: yarn workspace user int-test
1 change: 0 additions & 1 deletion .github/workflows/github-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jobs:
name: Run cypress unit tests
needs: install
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion apps/user/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "user",
"version": "0.0.1",
"description": "greenstand-wallet-app-api",
"description": "user",
"author": "",
"private": true,
"license": "UNLICENSED",
Expand Down
2 changes: 1 addition & 1 deletion apps/user/src/user/user.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class UserController {
return this.userService.createUser(registerUserDto);
}

@Get("test")
@Get("healthz")
check(@Body() registerUserDto: RegisterUserDto) {
return "tree growing!!";
}
Expand Down
Loading