From 16fbf45f0d70d1af720b1b28c73e590f425685cc Mon Sep 17 00:00:00 2001 From: Ji hwan Shin Date: Wed, 10 Apr 2024 23:35:15 +0900 Subject: [PATCH] =?UTF-8?q?[CHORE]=20NestJS=20=EC=84=9C=EB=B2=84=20CI=20?= =?UTF-8?q?=EA=B3=BC=EC=A0=95=EC=97=90=EC=84=9C=20=EC=A0=9C=EC=99=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 63 ++++++++++++++++++---------------------- 1 file changed, 29 insertions(+), 34 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f7971043..4c7c8c4c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,9 +30,6 @@ jobs: ~/.gradle/wrapper key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} - - name: Print Current Directory - run: pwd - - name: Create application.properties from secret run: | echo "${{ secrets.APPLICATION_SECRET_SPRING_DEV }}" > ./main/src/main/resources/application-secret.properties @@ -45,38 +42,36 @@ jobs: cd main ./gradlew clean build +# NsetJs 서버의 경우 변경될 사항이 없다고 생각하여 CI 작업 생략 / 만약 CI 작업이 필요하다면 맨 밑의 주석 참고 +# build-nestjs: +# name: Build and analyze (NestJS) +# runs-on: ubuntu-latest +# steps: +# - uses: actions/checkout@v3 +# with: +# fetch-depth: 0 - build-nestjs: - name: Build and analyze (NestJS) - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - - name: Set up Node.js - uses: actions/setup-node@v3 - with: - node-version: '21' - - - name: Cache npm packages - uses: actions/cache@v3 - with: - path: server/node_modules - key: ${{ runner.os }}-node-${{ hashFiles('server/package-lock.json') }} +# - name: Set up Node.js +# uses: actions/setup-node@v3 +# with: +# node-version: '21' - - name: Print Current Directory - run: pwd +# - name: Cache npm packages +# uses: actions/cache@v3 +# with: +# path: server/node_modules +# key: ${{ runner.os }}-node-${{ hashFiles('server/package-lock.json') }} - - name: Create .dev.env from secret - run: | - echo "${{ secrets.APPLICATION_SECRET_NESTJS_DEV }}" > ./server/.dev.env - shell: bash +# - name: Create .dev.env from secret +# run: | +# echo "${{ secrets.APPLICATION_SECRET_NESTJS_DEV }}" > ./server/.dev.env +# shell: bash - - name: Build and analyze (NestJS) - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | - cd server - npm ci - npm run start +# - name: Build and analyze (NestJS) +# env: +# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} +# run: | +# cd server +# npm ci +# npm run start +# Create .dev.env 작업을 통해 .dev.env 파일을 생성했음에도 CI 작업이 실패함. \ No newline at end of file