Skip to content

Commit

Permalink
chore(ci): Adding validate pipeline (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
DhairyaMajmudar authored and rajdip-b committed Jul 29, 2024
1 parent 74d601a commit 23cf3b3
Show file tree
Hide file tree
Showing 2 changed files with 72 additions and 2 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/validate-platform.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Validate Platform

on:
push:
branches:
- '!develop'
- '!main'
paths:
[
'apps/platform/**',
'.github/workflows/validate-platform.yml',
'.github/workflows/deploy-platform.yml'
]
pull_request:
paths:
[
'apps/platform/**',
'.github/workflows/deploy-platform.yml',
'.github/workflows/validate-platform.yml'
]

jobs:
validate:
runs-on: ubuntu-latest
name: Validate Platform

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 9.2.0
run_install: false

- name: Get pnpm store directory
shell: bash
run: |
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
- uses: actions/cache@v4
name: Setup pnpm cache
with:
path: ${{ env.STORE_PATH }}
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
restore-keys: |
${{ runner.os }}-pnpm-store-
- name: Install packages
run: |
pnpm i
- name: Lint
run: |
pnpm run lint:platform
13 changes: 11 additions & 2 deletions apps/api/src/user/service/user.service.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
import { ConflictException, Inject, Injectable, Logger, UnauthorizedException } from '@nestjs/common'
import {
ConflictException,
Inject,
Injectable,
Logger,
UnauthorizedException
} from '@nestjs/common'
import { UpdateUserDto } from '../dto/update.user/update.user'
import { AuthProvider, User } from '@prisma/client'
import { PrismaService } from '../../prisma/prisma.service'
import { CreateUserDto } from '../dto/create.user/create.user'
import { IMailService, MAIL_SERVICE } from '../../mail/services/interface.service'
import {
IMailService,
MAIL_SERVICE
} from '../../mail/services/interface.service'
import createUser from '../../common/create-user'
import generateOtp from '../../common/generate-otp'
import { EnvSchema } from '../../common/env/env.schema'
Expand Down

0 comments on commit 23cf3b3

Please sign in to comment.