Skip to content

Service 계층에서 발생하는 에러 상태 코드 수정 #9

Service 계층에서 발생하는 에러 상태 코드 수정

Service 계층에서 발생하는 에러 상태 코드 수정 #9

Workflow file for this run

name: Backend Nest CI
on:
pull_request:
branches: [develop]
paths:
- "server/nest/**"
defaults:
run:
working-directory: ./server/nest
jobs:
BACKEND-CI:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Use NodeJS
uses: actions/setup-node@v4
with:
node-version: 20.8.1
- name: Cache node modules
id: cache
uses: actions/cache@v2
with:
path: "**/node_modules"
key: npm-packages-${{ hashFiles('**/package-lock.json') }}
- name: Install Dependency
if: steps.cache.outputs.cache-hit != 'true'
run: npm install
- name: Create dev.env file
env:
DB_HOST_IP: ${{ secrets.SERVER_DEV_DB_HOST_IP }}
DB_PORT: ${{ secrets.SERVER_DEV_DB_PORT }}
DB_USER_NAME: ${{ secrets.SERVER_DEV_DB_USER_NAME }}
DB_PASSWORD: ${{ secrets.SERVER_DEV_DB_PASSWORD }}
DB_DATABASE_NAME: ${{ secrets.SERVER_DEV_DB_DATABASE_NAME }}
ACCESS_ID: ${{ secrets.SERVER_ENV_ACCESS_ID }}
SECRET_ACCESS_KEY: ${{ secrets.SERVER_ENV_SECRET_ACCESS_KEY }}
JWT_SECRET_KEY: ${{ secrets.SERVER_ENV_JWT_SECRET_KEY }}
GREEN_EYE_SECRET_KEY: ${{secrets.GREEN_EYE_SECRET_KEY}}
GREEN_EYE_REQUEST_URL: ${{secrets.GREEN_EYE_REQUEST_URL}}
CLOUD_FUNCTIONS_EXECUTE_URL: ${{secrets.CLOUD_FUNCTIONS_EXECUTE_URL}}
CLOUD_FUNCTIONS_REQUEST_URL: ${{secrets.CLOUD_FUNCTIONS_REQUEST_URL}}
API_GW_ACCESS_KEY: ${{secrets.API_GW_ACCESS_KEY}}
REFRESH_SECRET_KEY: ${{secrets.REFRESH_SECRET_KEY}}
REDIS_HOST_IP: ${{secrets.REDIS_HOST_IP}}
REDIS_PASSWORD: ${{secrets.REDIS_PASSWORD}}
REDIS_PORT: ${{secrets.REDIS_PORT}}
REDIS_TTL: ${{secrets.REDIS_TTL}}
run: |
touch dev.env
echo "DB_HOST_IP=$DB_HOST_IP" >> dev.env
echo "DB_PORT=$DB_PORT" >> dev.env
echo "DB_USER_NAME=$DB_USER_NAME" >> dev.env
echo "DB_PASSWORD=$DB_PASSWORD" >> dev.env
echo "DB_DATABASE_NAME=$DB_DATABASE_NAME" >> dev.env
echo "ACCESS_ID=$ACCESS_ID" >> dev.env
echo "SECRET_ACCESS_KEY=$SECRET_ACCESS_KEY" >> dev.env
echo "JWT_SECRET_KEY=$JWT_SECRET_KEY" >> dev.env
echo "GREEN_EYE_SECRET_KEY=$GREEN_EYE_SECRET_KEY" >> dev.env
echo "GREEN_EYE_REQUEST_URL=$GREEN_EYE_REQUEST_URL" >> dev.env
echo "CLOUD_FUNCTIONS_EXECUTE_URL" >> dev.env
echo "CLOUD_FUNCTIONS_REQUEST_URL" >> dev.env
echo "API_GW_ACCESS_KEY" >> dev.env
echo "REFRESH_SECRET_KEY=$REFRESH_SECRET_KEY" >> prod.env
echo "REDIS_HOST_IP=$REDIS_HOST_IP" >> prod.env
echo "REDIS_PASSWORD=$REDIS_PASSWORD" >> prod.env
echo "REDIS_PORT=$REDIS_PORT" >> prod.env
echo "REDIS_TTL=$REDIS_TTL" >> prod.env
- name: Execute Test
run: npm run test