From ca289424405bfb0091b9e225e2908b49e6536236 Mon Sep 17 00:00:00 2001 From: HyunseokLEE Date: Tue, 23 Sep 2025 02:12:41 +0900 Subject: [PATCH 1/3] =?UTF-8?q?CDP-27=20chore=E2=9A=99=EF=B8=8F:=20GitHub?= =?UTF-8?q?=20Actions=20(CI)=20=EC=84=B8=ED=8C=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/PULL_REQUEST_TEMPLATE.md | 44 ++++++++++++++++ .github/workflows/frontend-ci.yml | 86 +++++++++++++++++++++++++++++++ 2 files changed, 130 insertions(+) create mode 100644 .github/PULL_REQUEST_TEMPLATE.md create mode 100644 .github/workflows/frontend-ci.yml diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md new file mode 100644 index 0000000..639673e --- /dev/null +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -0,0 +1,44 @@ +# ๐Ÿš€ Pull Request + +## ๐Ÿ“ PR ์œ ํ˜• + + + +- [ ] ๊ธฐ๋Šฅ ์ถ”๊ฐ€ (Feature) +- [ ] ๋ฒ„๊ทธ ์ˆ˜์ • (Bug Fix) +- [ ] ์ฝ”๋“œ ๊ฐœ์„  (Refactoring) +- [ ] ๋ฌธ์„œ ์ž‘์—… (Docs) +- [ ] ํ™˜๊ฒฝ ์„ค์ • (Configuration) +- [ ] ์ตœ์ข… ์ ๊ฒ€ (Release Check) + +--- + +## ๐Ÿ” ๋ณ€๊ฒฝ ์‚ฌํ•ญ + + + +--- + +## ๐Ÿ“ธ ์Šคํฌ๋ฆฐ์ƒท + + + +--- + +## ๐Ÿšง ๊ด€๋ จ ์ด์Šˆ + + + +--- + +## ๐Ÿ› ๏ธ ์ตœ์ข… ๋ฐฐํฌ ์ ๊ฒ€ ๋ฆฌ์ŠคํŠธ + +- [ ] ์ฃผ์š” ๊ธฐ๋Šฅ ๋™์ž‘ ํ™•์ธ +- [ ] ๋นŒ๋“œ/๋ฐฐํฌ ํ™˜๊ฒฝ ์ ๊ฒ€ +- [ ] ๋ฌธ์„œ/์„ค์ • ๊ฒ€ํ†  + +--- + +## โœ… ์ตœ์ข… ๋ฐฐํฌ ์ ๊ฒ€ ๊ฒฐ๊ณผ + + diff --git a/.github/workflows/frontend-ci.yml b/.github/workflows/frontend-ci.yml new file mode 100644 index 0000000..3795726 --- /dev/null +++ b/.github/workflows/frontend-ci.yml @@ -0,0 +1,86 @@ +name: Frontend-CI + +on: + pull_request: + branches: [main, develop] + push: + branches: + - "Feature/*" + - "Fix/*" + - "Chore/*" + - "Docs/*" + - "Test/*" + - "Refactor/*" + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +env: + NODE_VERSION: "20.19.2" + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + - uses: pnpm/action-setup@v4 + with: + run_install: false + - name: Get pnpm store directory + id: pnpm-cache + run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + - uses: actions/cache@v4 + with: + path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} + key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }} + restore-keys: ${{ runner.os }}-pnpm- + - run: pnpm install --frozen-lockfile + - run: pnpm run lint --if-present + + test: + runs-on: ubuntu-latest + needs: lint + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + - uses: pnpm/action-setup@v4 + with: + run_install: false + - name: Get pnpm store directory + id: pnpm-cache + run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + - uses: actions/cache@v4 + with: + path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} + key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }} + restore-keys: ${{ runner.os }}-pnpm- + - run: pnpm install --frozen-lockfile + - run: pnpm run test --if-present -- --ci + + build: + runs-on: ubuntu-latest + needs: test + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ env.NODE_VERSION }} + - uses: pnpm/action-setup@v4 + with: + run_install: false + - name: Get pnpm store directory + id: pnpm-cache + run: echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT + - uses: actions/cache@v4 + with: + path: ${{ steps.pnpm-cache.outputs.STORE_PATH }} + key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }} + restore-keys: ${{ runner.os }}-pnpm- + - run: pnpm install --frozen-lockfile + - run: pnpm run build From 4fa7f4c3fffd8d6cca64db8b7da5ae637111864d Mon Sep 17 00:00:00 2001 From: HyunseokLEE Date: Tue, 23 Sep 2025 02:23:09 +0900 Subject: [PATCH 2/3] =?UTF-8?q?CDP-24=20fix=F0=9F=90=9B:=20add=20pnpm=20pa?= =?UTF-8?q?ckageManager?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/package.json b/package.json index 4f473c5..46751ea 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "custom-daily-planner", "version": "0.1.0", "private": true, + "packageManager": "pnpm@10.16.1", "scripts": { "dev": "next dev", "build": "next build", From f4edc045c8f75ef7764a0ad56edcc42abe470759 Mon Sep 17 00:00:00 2001 From: HyunseokLEE Date: Tue, 23 Sep 2025 02:30:58 +0900 Subject: [PATCH 3/3] =?UTF-8?q?CDP-24=20fix=F0=9F=90=9B:=20fix=20pnpm=20ru?= =?UTF-8?q?n=20syntax=20in=20frontend-ci=20workflow?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/frontend-ci.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/frontend-ci.yml b/.github/workflows/frontend-ci.yml index 3795726..bef853a 100644 --- a/.github/workflows/frontend-ci.yml +++ b/.github/workflows/frontend-ci.yml @@ -39,7 +39,7 @@ jobs: key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }} restore-keys: ${{ runner.os }}-pnpm- - run: pnpm install --frozen-lockfile - - run: pnpm run lint --if-present + - run: pnpm run --if-present lint test: runs-on: ubuntu-latest @@ -61,7 +61,7 @@ jobs: key: ${{ runner.os }}-pnpm-${{ hashFiles('pnpm-lock.yaml') }} restore-keys: ${{ runner.os }}-pnpm- - run: pnpm install --frozen-lockfile - - run: pnpm run test --if-present -- --ci + - run: pnpm run --if-present test -- --ci build: runs-on: ubuntu-latest