From 9034df0607a034118048fa67563fc78db6e506c3 Mon Sep 17 00:00:00 2001 From: ImxYJL Date: Wed, 24 Jul 2024 19:49:52 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20develop=20=EB=B8=8C=EB=9E=9C=EC=B9=98?= =?UTF-8?q?=EB=A1=9C=20frontend=20=EC=9D=B4=ED=95=98=20=EA=B2=BD=EB=A1=9C?= =?UTF-8?q?=EC=97=90=EC=84=9C=20PR=EC=9D=B4=20=EC=98=AC=EB=9D=BC=EC=98=AC?= =?UTF-8?q?=20=EB=95=8C=20CI=EA=B0=80=20=EC=8B=A4=ED=96=89=EB=90=98?= =?UTF-8?q?=EB=8F=84=EB=A1=9D=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/frontend-ci.yml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/frontend-ci.yml b/.github/workflows/frontend-ci.yml index 46eff265f..facf77f93 100644 --- a/.github/workflows/frontend-ci.yml +++ b/.github/workflows/frontend-ci.yml @@ -1,11 +1,5 @@ name: Build test with Webpack on: - push: - branches: - - develop - - fe/ci/85-build-ci - #paths: - # - "frontend/**" pull_request: branches: - develop @@ -16,7 +10,7 @@ permissions: contents: read pages: write id-token: write -concurrency: # action 도중 새 PR이 올라오면 기존 action 취소 +concurrency: # NOTE: action 도중 새 PR이 올라오면 기존 action 취소 group: "ci-group" cancel-in-progress: true jobs: @@ -26,29 +20,29 @@ jobs: - name: Checkout to current repository uses: actions/checkout@v4 + - name: Change to frontend directory + run: cd frontend + - name: Set up Node.js uses: actions/setup-node@v4 with: node-version: 20 cache: "yarn" - cache-dependency-path: ./frontend/yarn.lock + cache-dependency-path: yarn.lock - name: Create .env file - run: echo "API_BASE_URL=${{ secrets.API_BASE_URL }}" > ./frontend/.env + run: echo "API_BASE_URL=${{ secrets.API_BASE_URL }}" > .env - name: Set environment file permissions - run: chmod 644 ./frontend/.env + run: chmod 644 .env - name: Install dependencies run: yarn install --frozen-lockfile - working-directory: frontend - name: Run tests run: yarn test - working-directory: frontend - name: Build run: yarn build env: API_BASE_URL: ${{ secrets.API_BASE_URL }} - working-directory: frontend