From 50527ae33b5b00a8d44a8b65cd413fb2373ce2d9 Mon Sep 17 00:00:00 2001 From: six-standard Date: Fri, 25 Jul 2025 21:43:18 +0900 Subject: [PATCH 01/22] =?UTF-8?q?feature:=20E2E=20=EC=9B=8C=ED=81=AC?= =?UTF-8?q?=ED=94=8C=EB=A1=9C=EC=9A=B0=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/process-e2e.yaml | 59 ++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 .github/workflows/process-e2e.yaml diff --git a/.github/workflows/process-e2e.yaml b/.github/workflows/process-e2e.yaml new file mode 100644 index 0000000..e9b2293 --- /dev/null +++ b/.github/workflows/process-e2e.yaml @@ -0,0 +1,59 @@ +name: Process E2E Testing + +on: + workflow_dispatch: + push: + branches: + - main + - feature/e2e-ci + +jobs: + build-and-push: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Node.js + uses: actions/setup-node@v4 + with: + node-version: 23 + + - name: Install dependencies + run: | + npm install -g pnpm + pnpm install --frozen-lockfile + + - name: Start application server + run: | + pnpm start + env: + CI: true + + - name: Wait for server + run: npx wait-on http://localhost:3000 + + - name: Run Cypress tests + uses: cypress-io/github-action@v6 + with: + browser: chrome + headless: true + record: false + wait-on: 'http://localhost:3000' + wait-on-timeout: 120 + install: false + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + NEXT_PUBLIC_BASE_URL: 'http://localhost:3000' + NEXT_PUBLIC_CHANNELTALK_PLUGIN_KEY: 'test_key' + NEXT_PUBLIC_GA_ID: '' + NEXT_PUBLIC_SENTRY_AUTH_TOKEN: 'test_sentry_token' + NEXT_PUBLIC_SENTRY_DSN: 'test_sentry_dsn' + + - name: Upload screenshots + uses: actions/upload-artifact@v4 + if: failure() + with: + name: cypress-screenshots + path: cypress/screenshots From 6045cb3bebacbee08a4f0cc42eca07895d7dc862 Mon Sep 17 00:00:00 2001 From: six-standard Date: Fri, 25 Jul 2025 21:51:59 +0900 Subject: [PATCH 02/22] =?UTF-8?q?refactor:=20=EB=A9=94=EC=84=B8=EC=A7=80?= =?UTF-8?q?=20=EA=B0=9C=EC=84=A0=20=EB=B0=8F=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/process-e2e.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/process-e2e.yaml b/.github/workflows/process-e2e.yaml index e9b2293..3f9d342 100644 --- a/.github/workflows/process-e2e.yaml +++ b/.github/workflows/process-e2e.yaml @@ -8,7 +8,7 @@ on: - feature/e2e-ci jobs: - build-and-push: + process-e2e-test: runs-on: ubuntu-latest steps: @@ -27,6 +27,7 @@ jobs: - name: Start application server run: | + pnpm build pnpm start env: CI: true From eda3cd99465351846f4baea88cb7ccf5cebb17bf Mon Sep 17 00:00:00 2001 From: six-standard Date: Fri, 25 Jul 2025 21:56:58 +0900 Subject: [PATCH 03/22] =?UTF-8?q?refactor:=20=EC=9E=84=EC=8B=9C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/process-e2e.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/process-e2e.yaml b/.github/workflows/process-e2e.yaml index 3f9d342..45a31dc 100644 --- a/.github/workflows/process-e2e.yaml +++ b/.github/workflows/process-e2e.yaml @@ -27,8 +27,7 @@ jobs: - name: Start application server run: | - pnpm build - pnpm start + pnpm dev env: CI: true From 378e66cb089228330cde03a8d0052b421f442b47 Mon Sep 17 00:00:00 2001 From: six-standard Date: Sat, 26 Jul 2025 16:38:18 +0900 Subject: [PATCH 04/22] =?UTF-8?q?fix:=20=EC=95=A1=EC=85=98=20env=20?= =?UTF-8?q?=EA=B0=92=20=EA=B4=80=EB=A0=A8=20=EC=98=A4=EB=A5=98=20=ED=95=B4?= =?UTF-8?q?=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/process-e2e.yaml | 16 ++++++++++++---- cypress.config.ts | 8 ++++---- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/process-e2e.yaml b/.github/workflows/process-e2e.yaml index 45a31dc..d29152e 100644 --- a/.github/workflows/process-e2e.yaml +++ b/.github/workflows/process-e2e.yaml @@ -25,6 +25,14 @@ jobs: npm install -g pnpm pnpm install --frozen-lockfile + - name: Create .env file for Testing + run: | + echo "NEXT_PUBLIC_BASE_URL=http://localhost:3000" >> .env + echo "NEXT_PUBLIC_CHANNELTALK_PLUGIN_KEY=sample_key" >> .env + echo "NEXT_PUBLIC_GA_ID=sample_id" >> .env + echo "NEXT_PUBLIC_SENTRY_AUTH_TOKEN=sample_token" >> .env + echo "NEXT_PUBLIC_SENTRY_DSN=sample_dsn" >> .env + - name: Start application server run: | pnpm dev @@ -46,10 +54,10 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} NEXT_PUBLIC_BASE_URL: 'http://localhost:3000' - NEXT_PUBLIC_CHANNELTALK_PLUGIN_KEY: 'test_key' - NEXT_PUBLIC_GA_ID: '' - NEXT_PUBLIC_SENTRY_AUTH_TOKEN: 'test_sentry_token' - NEXT_PUBLIC_SENTRY_DSN: 'test_sentry_dsn' + NEXT_PUBLIC_CHANNELTALK_PLUGIN_KEY: 'sample_key' + NEXT_PUBLIC_GA_ID: 'sample_id' + NEXT_PUBLIC_SENTRY_AUTH_TOKEN: 'sample_token' + NEXT_PUBLIC_SENTRY_DSN: 'sample_dsn' - name: Upload screenshots uses: actions/upload-artifact@v4 diff --git a/cypress.config.ts b/cypress.config.ts index c90cf30..f02bd9d 100644 --- a/cypress.config.ts +++ b/cypress.config.ts @@ -14,10 +14,10 @@ export default defineConfig({ responseTimeout: 10000, env: { NEXT_PUBLIC_BASE_URL: 'http://localhost:3000', - NEXT_PUBLIC_CHANNELTALK_PLUGIN_KEY: 'test_key', - NEXT_PUBLIC_GA_ID: '', - NEXT_PUBLIC_SENTRY_AUTH_TOKEN: 'test_sentry_token', - NEXT_PUBLIC_SENTRY_DSN: 'test_sentry_dsn', + NEXT_PUBLIC_CHANNELTALK_PLUGIN_KEY: 'sample_key', + NEXT_PUBLIC_GA_ID: 'sample_id', + NEXT_PUBLIC_SENTRY_AUTH_TOKEN: 'sample_token', + NEXT_PUBLIC_SENTRY_DSN: 'sample_dsn', }, /* eslint-disable @typescript-eslint/no-unused-vars */ setupNodeEvents(_on, _config) { From 2ddaf34cad23c04904a3fb5e9de6a2122c11942a Mon Sep 17 00:00:00 2001 From: six-standard Date: Sat, 26 Jul 2025 16:43:06 +0900 Subject: [PATCH 05/22] =?UTF-8?q?fix:=20=EC=95=A1=EC=85=98=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EC=84=9C=EB=B2=84=20=EC=8B=A4=ED=96=89=20=ED=9B=84?= =?UTF-8?q?=20=EB=AC=B4=ED=95=9C=20=EB=8C=80=EA=B8=B0=ED=95=98=EB=8A=94=20?= =?UTF-8?q?=EC=98=A4=EB=A5=98=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/process-e2e.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/process-e2e.yaml b/.github/workflows/process-e2e.yaml index d29152e..75f2392 100644 --- a/.github/workflows/process-e2e.yaml +++ b/.github/workflows/process-e2e.yaml @@ -35,12 +35,12 @@ jobs: - name: Start application server run: | - pnpm dev + pnpm dev & env: CI: true - name: Wait for server - run: npx wait-on http://localhost:3000 + run: npx wait-on http://localhost:3000 --timeout 8000 - name: Run Cypress tests uses: cypress-io/github-action@v6 From f70099a9e08e37949d2f83dc330f18f7d541c2d4 Mon Sep 17 00:00:00 2001 From: six-standard Date: Sat, 26 Jul 2025 17:07:58 +0900 Subject: [PATCH 06/22] =?UTF-8?q?fix:=20=EC=95=A1=EC=85=98=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EC=84=9C=EB=B2=84=20=EC=8B=A4=ED=96=89=EC=8B=9C=20?= =?UTF-8?q?=EC=A0=95=EC=83=81=EC=A0=81=EC=9C=BC=EB=A1=9C=20=EB=8C=80?= =?UTF-8?q?=EA=B8=B0=ED=95=98=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/process-e2e.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/process-e2e.yaml b/.github/workflows/process-e2e.yaml index 75f2392..a26aee6 100644 --- a/.github/workflows/process-e2e.yaml +++ b/.github/workflows/process-e2e.yaml @@ -40,7 +40,7 @@ jobs: CI: true - name: Wait for server - run: npx wait-on http://localhost:3000 --timeout 8000 + run: npx wait-on http://localhost:3000 --timeout 60000 - name: Run Cypress tests uses: cypress-io/github-action@v6 From c90cf04f091911cb8e11718ff6946ea949070e2c Mon Sep 17 00:00:00 2001 From: six-standard Date: Sat, 26 Jul 2025 17:10:04 +0900 Subject: [PATCH 07/22] =?UTF-8?q?fix:=20cypress=20=EC=BA=90=EC=8B=9C=20?= =?UTF-8?q?=EA=B4=80=EB=A0=A8=20=EC=98=A4=EB=A5=98=20=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/process-e2e.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/process-e2e.yaml b/.github/workflows/process-e2e.yaml index a26aee6..4d02c89 100644 --- a/.github/workflows/process-e2e.yaml +++ b/.github/workflows/process-e2e.yaml @@ -24,6 +24,7 @@ jobs: run: | npm install -g pnpm pnpm install --frozen-lockfile + pnpm run cypress install - name: Create .env file for Testing run: | From 8693ee5860d6d47a0b008f793ee6d81ac723b704 Mon Sep 17 00:00:00 2001 From: six-standard Date: Sat, 26 Jul 2025 17:11:53 +0900 Subject: [PATCH 08/22] =?UTF-8?q?fix:=20cypress=20=EC=BA=90=EC=8B=9C=20?= =?UTF-8?q?=EC=84=A4=EC=B9=98=20=EA=B4=80=EB=A0=A8=20=EC=98=A4=EB=A5=98=20?= =?UTF-8?q?=ED=95=B4=EA=B2=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/process-e2e.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/process-e2e.yaml b/.github/workflows/process-e2e.yaml index 4d02c89..40e072e 100644 --- a/.github/workflows/process-e2e.yaml +++ b/.github/workflows/process-e2e.yaml @@ -24,7 +24,7 @@ jobs: run: | npm install -g pnpm pnpm install --frozen-lockfile - pnpm run cypress install + npx cypress install - name: Create .env file for Testing run: | From e249c8c20ac8aaf816022a93c25a1f0fd1cb0086 Mon Sep 17 00:00:00 2001 From: six-standard Date: Sat, 26 Jul 2025 17:23:08 +0900 Subject: [PATCH 09/22] =?UTF-8?q?refactor:=20=EC=8A=A4=ED=81=AC=EB=A6=B0?= =?UTF-8?q?=EC=83=B7=20=ED=8F=B4=EB=8D=94=20gitignore?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 1 + 1 file changed, 1 insertion(+) diff --git a/.gitignore b/.gitignore index dce7b52..c297f79 100644 --- a/.gitignore +++ b/.gitignore @@ -49,6 +49,7 @@ Temporary Items ### NextJS ### # dependencies /node_modules +/cypress/screenshots /.pnp .pnp.js From 66e135e976da524b6979d014b1ae7df8559575a1 Mon Sep 17 00:00:00 2001 From: six-standard Date: Sat, 26 Jul 2025 17:28:11 +0900 Subject: [PATCH 10/22] =?UTF-8?q?refactor:=20=ED=95=84=EC=9A=94=EC=97=86?= =?UTF-8?q?=EB=8A=94=20=EC=BC=80=EC=9D=B4=EC=8A=A4=20=EC=82=AD=EC=A0=9C=20?= =?UTF-8?q?=EB=9E=AD=ED=81=AC=20=EC=88=9C=EC=9C=84=EB=8A=94=20=EB=AC=B4?= =?UTF-8?q?=EC=A1=B0=EA=B1=B4=20=ED=91=9C=EC=8B=9C=EB=90=A9=EB=8B=88?= =?UTF-8?q?=EB=8B=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cypress/e2e/leaderboards.cy.ts | 6 ------ 1 file changed, 6 deletions(-) diff --git a/cypress/e2e/leaderboards.cy.ts b/cypress/e2e/leaderboards.cy.ts index e5bfbee..0e8cca2 100644 --- a/cypress/e2e/leaderboards.cy.ts +++ b/cypress/e2e/leaderboards.cy.ts @@ -44,12 +44,6 @@ describe('리더보드 페이지', () => { cy.get('select').eq(3).select('지난 30일'); }); - it('랭킹 순위가 표시되어야 한다', () => { - cy.get('[data-testid="rank"], [class*="rank"]').should('be.visible'); - cy.contains('1').should('be.visible'); - cy.contains('2').should('be.visible'); - }); - it('통계 변화량이 표시되어야 한다', () => { cy.contains('500').should('be.visible'); cy.contains('300').should('be.visible'); From 60ea5ce8c2a56e47c096d00ba959ef4bf404b23a Mon Sep 17 00:00:00 2001 From: six-standard Date: Sat, 26 Jul 2025 17:33:04 +0900 Subject: [PATCH 11/22] =?UTF-8?q?refactor:=20=ED=92=80=20=EB=A6=AC?= =?UTF-8?q?=ED=80=98=EC=8A=A4=ED=8A=B8=EC=8B=9C=EC=97=90=EB=A7=8C=20?= =?UTF-8?q?=EC=8B=A4=ED=96=89=EB=90=98=EB=8F=84=EB=A1=9D=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/process-e2e.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/process-e2e.yaml b/.github/workflows/process-e2e.yaml index 40e072e..b835833 100644 --- a/.github/workflows/process-e2e.yaml +++ b/.github/workflows/process-e2e.yaml @@ -1,8 +1,7 @@ name: Process E2E Testing on: - workflow_dispatch: - push: + pull_request: branches: - main - feature/e2e-ci From f6d329b4b7257148482754a9c9de15e6ac8d317a Mon Sep 17 00:00:00 2001 From: six-standard Date: Sat, 26 Jul 2025 17:33:59 +0900 Subject: [PATCH 12/22] =?UTF-8?q?refactor:=20=ED=95=84=EC=9A=94=EC=97=86?= =?UTF-8?q?=EB=8A=94=20=EB=B8=8C=EB=9E=9C=EC=B9=98=20=EC=A0=9C=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/process-e2e.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/process-e2e.yaml b/.github/workflows/process-e2e.yaml index b835833..ddc169a 100644 --- a/.github/workflows/process-e2e.yaml +++ b/.github/workflows/process-e2e.yaml @@ -4,7 +4,6 @@ on: pull_request: branches: - main - - feature/e2e-ci jobs: process-e2e-test: From 344170e356b2703c1d09de3f85eda34e082c469f Mon Sep 17 00:00:00 2001 From: six-standard Date: Mon, 28 Jul 2025 21:18:11 +0900 Subject: [PATCH 13/22] =?UTF-8?q?refactor:=20gitignore=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=9C=84=EC=B9=98=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index c297f79..df38413 100644 --- a/.gitignore +++ b/.gitignore @@ -49,12 +49,12 @@ Temporary Items ### NextJS ### # dependencies /node_modules -/cypress/screenshots /.pnp .pnp.js # testing /coverage +/cypress/screenshots # next.js /.next/ From b5b4d170791ede3cd99b01f627718521f4bd460b Mon Sep 17 00:00:00 2001 From: six-standard Date: Mon, 28 Jul 2025 21:51:25 +0900 Subject: [PATCH 14/22] =?UTF-8?q?refactor:=20=EC=8B=A4=ED=8C=A8=20?= =?UTF-8?q?=EC=8B=9C=20=EC=8A=AC=EB=9E=99=EC=97=90=20=EB=A9=94=EC=84=B8?= =?UTF-8?q?=EC=A7=80=20=EC=A0=84=EC=86=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/process-e2e.yaml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/process-e2e.yaml b/.github/workflows/process-e2e.yaml index ddc169a..fcead34 100644 --- a/.github/workflows/process-e2e.yaml +++ b/.github/workflows/process-e2e.yaml @@ -64,3 +64,19 @@ jobs: with: name: cypress-screenshots path: cypress/screenshots + + slackNotify: + if: failure() + runs-on: ubuntu-latest + + steps: + - name: Notify message to slack + uses: rtCamp/action-slack-notify@v2 + env: + SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} + SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }} + SLACK_COLOR: ${{ job.status }} # 또는 'green', '#ff00ff' 처럼 직접 색상 지정 + SLACK_USERNAME: Github + SLACK_ICON: https://cdn-icons-png.flaticon.com/512/25/25231.png + SLACK_TITLE: E2E Test + SLACK_MESSAGE: 'E2E CI 테스트가 실패했습니다. Artifact를 확인해주세요.' From bd1fea6c85af5a75585710f50672226625b6cecd Mon Sep 17 00:00:00 2001 From: six-standard Date: Mon, 28 Jul 2025 21:53:53 +0900 Subject: [PATCH 15/22] =?UTF-8?q?refactor:=20=EC=9B=90=EB=9E=98=20env=20?= =?UTF-8?q?=EA=B0=92=EA=B3=BC=EC=9D=98=20=EC=B0=A8=EC=9D=B4=EC=A0=90=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/process-e2e.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/process-e2e.yaml b/.github/workflows/process-e2e.yaml index fcead34..9602a40 100644 --- a/.github/workflows/process-e2e.yaml +++ b/.github/workflows/process-e2e.yaml @@ -73,8 +73,8 @@ jobs: - name: Notify message to slack uses: rtCamp/action-slack-notify@v2 env: - SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }} - SLACK_CHANNEL: ${{ secrets.SLACK_CHANNEL }} + SLACK_WEBHOOK: ${{ secrets.GIT_ACTION_SLACK_WEBHOOK }} + SLACK_CHANNEL: ${{ secrets.GIT_ACTION_SLACK_CHANNEL }} SLACK_COLOR: ${{ job.status }} # 또는 'green', '#ff00ff' 처럼 직접 색상 지정 SLACK_USERNAME: Github SLACK_ICON: https://cdn-icons-png.flaticon.com/512/25/25231.png From 5deb2f2e2f0df229ad3e066f86fe43d717478d0d Mon Sep 17 00:00:00 2001 From: six-standard Date: Mon, 28 Jul 2025 21:57:44 +0900 Subject: [PATCH 16/22] =?UTF-8?q?refactor:=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/process-e2e.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/process-e2e.yaml b/.github/workflows/process-e2e.yaml index 9602a40..8c922c1 100644 --- a/.github/workflows/process-e2e.yaml +++ b/.github/workflows/process-e2e.yaml @@ -66,7 +66,6 @@ jobs: path: cypress/screenshots slackNotify: - if: failure() runs-on: ubuntu-latest steps: From 7eb9e966a3a7996101e7f5d417ebd60ca3320c08 Mon Sep 17 00:00:00 2001 From: six-standard Date: Mon, 28 Jul 2025 22:02:16 +0900 Subject: [PATCH 17/22] =?UTF-8?q?refactor:=20=EC=95=8C=EB=A6=BC=20?= =?UTF-8?q?=ED=85=8C=EC=8A=A4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index e99c9b9..b995869 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,4 +18,4 @@ RUN pnpm install --no-frozen-lockfile --prod EXPOSE 3000 -CMD ["pm2-runtime", "start", "ecosystem.config.js"] +CMD ["pm2-runtime", "start", "ecosystem.config.js"] \ No newline at end of file From fd8f17d1479b182db6e3be9fc7a229e6d3d987da Mon Sep 17 00:00:00 2001 From: six-standard Date: Mon, 28 Jul 2025 22:11:45 +0900 Subject: [PATCH 18/22] =?UTF-8?q?refactor:=20=EB=A9=94=EC=84=B8=EC=A7=80?= =?UTF-8?q?=20=EC=A0=84=EC=86=A1=20=EB=B0=A9=EC=8B=9D=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/process-e2e.yaml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/process-e2e.yaml b/.github/workflows/process-e2e.yaml index 8c922c1..408ed28 100644 --- a/.github/workflows/process-e2e.yaml +++ b/.github/workflows/process-e2e.yaml @@ -58,6 +58,10 @@ jobs: NEXT_PUBLIC_SENTRY_AUTH_TOKEN: 'sample_token' NEXT_PUBLIC_SENTRY_DSN: 'sample_dsn' + # KST 시간을 GitHub Actions 환경 변수에 세팅 + - name: Get Current KST Time + run: echo "KST_TIME=$(TZ=Asia/Seoul date +'%Y-%m-%d %H:%M:%S')" >> $GITHUB_ENV + - name: Upload screenshots uses: actions/upload-artifact@v4 if: failure() @@ -65,17 +69,13 @@ jobs: name: cypress-screenshots path: cypress/screenshots - slackNotify: - runs-on: ubuntu-latest + - name: Send Slack Notification on Failure - steps: - - name: Notify message to slack - uses: rtCamp/action-slack-notify@v2 + uses: slackapi/slack-github-action@v1.24.0 + with: + payload: | + { + "text": "* FE E2E CI Test *\n\n❌ *Status:* Failure\n📅 *Timestamp (KST):* ${{ env.KST_TIME }}\n🔗 *Workflow URL:* <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Workflow>" + } env: - SLACK_WEBHOOK: ${{ secrets.GIT_ACTION_SLACK_WEBHOOK }} - SLACK_CHANNEL: ${{ secrets.GIT_ACTION_SLACK_CHANNEL }} - SLACK_COLOR: ${{ job.status }} # 또는 'green', '#ff00ff' 처럼 직접 색상 지정 - SLACK_USERNAME: Github - SLACK_ICON: https://cdn-icons-png.flaticon.com/512/25/25231.png - SLACK_TITLE: E2E Test - SLACK_MESSAGE: 'E2E CI 테스트가 실패했습니다. Artifact를 확인해주세요.' + SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} From 5a679b9150184a3b631f8595b25bcb7885351402 Mon Sep 17 00:00:00 2001 From: six-standard Date: Mon, 28 Jul 2025 22:24:56 +0900 Subject: [PATCH 19/22] =?UTF-8?q?refactor:=20=EB=A9=94=EC=84=B8=EC=A7=80?= =?UTF-8?q?=20=ED=98=95=ED=83=9C=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/process-e2e.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/process-e2e.yaml b/.github/workflows/process-e2e.yaml index 408ed28..8133b7e 100644 --- a/.github/workflows/process-e2e.yaml +++ b/.github/workflows/process-e2e.yaml @@ -70,12 +70,12 @@ jobs: path: cypress/screenshots - name: Send Slack Notification on Failure - uses: slackapi/slack-github-action@v1.24.0 + with: payload: | { - "text": "* FE E2E CI Test *\n\n❌ *Status:* Failure\n📅 *Timestamp (KST):* ${{ env.KST_TIME }}\n🔗 *Workflow URL:* <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Workflow>" + "text": "*FE E2E CI Test*\n\n✅ *Status:* Success\n\n📅 *Timestamp (KST):* ${{ env.KST_TIME }}\n\n🔗 *Workflow URL:* <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Workflow>\n\n🔗 *Commit:* <${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>" } env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} From 7de96461a2bb1e529581b2e5a26d91f8106f1419 Mon Sep 17 00:00:00 2001 From: six-standard Date: Mon, 28 Jul 2025 22:25:38 +0900 Subject: [PATCH 20/22] =?UTF-8?q?refactor:=20=ED=85=8C=EC=8A=A4=ED=8A=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index b995869..e99c9b9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,4 +18,4 @@ RUN pnpm install --no-frozen-lockfile --prod EXPOSE 3000 -CMD ["pm2-runtime", "start", "ecosystem.config.js"] \ No newline at end of file +CMD ["pm2-runtime", "start", "ecosystem.config.js"] From 5522f1da6e9baa86c16becf38b11317e9456ac43 Mon Sep 17 00:00:00 2001 From: six-standard Date: Mon, 28 Jul 2025 22:30:15 +0900 Subject: [PATCH 21/22] =?UTF-8?q?refactor:=20=EB=A9=94=EC=84=B8=EC=A7=80?= =?UTF-8?q?=20=EB=A7=88=EC=A7=80=EB=A7=89=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/process-e2e.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/process-e2e.yaml b/.github/workflows/process-e2e.yaml index 8133b7e..a304c92 100644 --- a/.github/workflows/process-e2e.yaml +++ b/.github/workflows/process-e2e.yaml @@ -71,11 +71,11 @@ jobs: - name: Send Slack Notification on Failure uses: slackapi/slack-github-action@v1.24.0 - + if: failure() with: payload: | { - "text": "*FE E2E CI Test*\n\n✅ *Status:* Success\n\n📅 *Timestamp (KST):* ${{ env.KST_TIME }}\n\n🔗 *Workflow URL:* <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Workflow>\n\n🔗 *Commit:* <${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>" + "text": "*❌ FE E2E CI Test was failed*\n\n📅 *Timestamp (KST):* ${{ env.KST_TIME }}\n\n🔗 *Workflow URL:* <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Workflow>\n\n🔗 *Commit:* <${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>" } env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }} From 8a7e079353e2c87818effc2fd172156251f8251b Mon Sep 17 00:00:00 2001 From: six-standard Date: Mon, 28 Jul 2025 22:41:49 +0900 Subject: [PATCH 22/22] =?UTF-8?q?refactor:=20=EC=95=84=ED=8B=B0=ED=8C=A9?= =?UTF-8?q?=ED=8A=B8=20URL=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/process-e2e.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/process-e2e.yaml b/.github/workflows/process-e2e.yaml index a304c92..cf9ef40 100644 --- a/.github/workflows/process-e2e.yaml +++ b/.github/workflows/process-e2e.yaml @@ -75,7 +75,7 @@ jobs: with: payload: | { - "text": "*❌ FE E2E CI Test was failed*\n\n📅 *Timestamp (KST):* ${{ env.KST_TIME }}\n\n🔗 *Workflow URL:* <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Workflow>\n\n🔗 *Commit:* <${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>" + "text": "*❌ FE E2E CI Test was failed*\n\n📅 *Timestamp (KST):* ${{ env.KST_TIME }}\n\n🔗 *Workflow URL:* <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Workflow>\n\n🔗 *Commit:* <${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }}|${{ github.sha }}>\n\n📸 *Screenshots:* <${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}/artifacts|Download Screenshots>" } env: SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}