From b3ded10ae4c871b73baebbc9a4a1f0c68b5a086b Mon Sep 17 00:00:00 2001 From: dorukucak Date: Tue, 24 Dec 2024 18:21:23 +0000 Subject: [PATCH] ci: added user api tests to workflow ci: added user api tests to workflow ci: added user api tests to workflow dded user api tests to workflowwith '#' will be ignored, and an empty message aborts the commit. ci: added user api tests to workflow --- .github/workflows/api-pr.yml | 7 +++++-- .github/workflows/github-ci.yml | 1 - apps/user/package.json | 2 +- apps/user/src/user/user.controller.ts | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/api-pr.yml b/.github/workflows/api-pr.yml index c3758b0..831f960 100644 --- a/.github/workflows/api-pr.yml +++ b/.github/workflows/api-pr.yml @@ -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 diff --git a/.github/workflows/github-ci.yml b/.github/workflows/github-ci.yml index 9adb367..72a4a84 100644 --- a/.github/workflows/github-ci.yml +++ b/.github/workflows/github-ci.yml @@ -30,7 +30,6 @@ jobs: name: Run cypress unit tests needs: install runs-on: ubuntu-latest - steps: - name: Checkout uses: actions/checkout@v4 diff --git a/apps/user/package.json b/apps/user/package.json index 071e992..6c746a9 100644 --- a/apps/user/package.json +++ b/apps/user/package.json @@ -1,7 +1,7 @@ { "name": "user", "version": "0.0.1", - "description": "greenstand-wallet-app-api", + "description": "user", "author": "", "private": true, "license": "UNLICENSED", diff --git a/apps/user/src/user/user.controller.ts b/apps/user/src/user/user.controller.ts index b761df5..ab0c74b 100644 --- a/apps/user/src/user/user.controller.ts +++ b/apps/user/src/user/user.controller.ts @@ -11,7 +11,7 @@ export class UserController { return this.userService.createUser(registerUserDto); } - @Get("test") + @Get("healthz") check(@Body() registerUserDto: RegisterUserDto) { return "tree growing!!"; }