From 7945d3dc598afa68e57a298968d2d0cbb8e603b5 Mon Sep 17 00:00:00 2001 From: signoid Date: Mon, 6 Apr 2026 01:11:25 +0900 Subject: [PATCH 1/3] update. action checkout version --- .github/workflows/deploy.yaml | 2 +- .github/workflows/dev.yaml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index f0203d2..3e30dbf 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -12,7 +12,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Build and tag Docker image run: | diff --git a/.github/workflows/dev.yaml b/.github/workflows/dev.yaml index 1d7064d..62c7d7b 100644 --- a/.github/workflows/dev.yaml +++ b/.github/workflows/dev.yaml @@ -18,7 +18,7 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Build and tag Docker image run: | From 47a001f2def2847c64ac2ca2d81d131a86404966 Mon Sep 17 00:00:00 2001 From: signoid Date: Mon, 6 Apr 2026 01:13:22 +0900 Subject: [PATCH 2/3] feat. build verification workflow for pull request. --- .github/workflows/pr-build-check.yaml | 40 +++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 .github/workflows/pr-build-check.yaml diff --git a/.github/workflows/pr-build-check.yaml b/.github/workflows/pr-build-check.yaml new file mode 100644 index 0000000..5e5501d --- /dev/null +++ b/.github/workflows/pr-build-check.yaml @@ -0,0 +1,40 @@ +name: PR Build Verification + +on: + pull_request: + types: [opened, synchronize, reopened] + branches: + - main + - Dev + +jobs: + build-check: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Go + uses: actions/setup-go@v5 + with: + go-version: '1.23.x' + + - name: Download Go modules + run: go mod download + + - name: Build + run: go build -o main . + + - name: Comment on failure + if: failure() + uses: actions/github-script@v7 + with: + script: | + await github.rest.pulls.createReview({ + owner: context.repo.owner, + repo: context.repo.repo, + pull_number: context.payload.pull_request.number, + event: 'REQUEST_CHANGES', + body: 'Failed To BUILD! Please check the build logs for details and Resolve the issues before merging.' + }); \ No newline at end of file From b6c64f564cadfe24fc41b7324b90482217383999 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=B5=9C=EC=84=B1=EC=9A=B0?= <71366142+ukleon123@users.noreply.github.com> Date: Tue, 7 Apr 2026 00:47:10 +0900 Subject: [PATCH 3/3] Update .github/workflows/pr-build-check.yaml Change Build fail review action 'REQUEST_CHANGES' to 'COMMENT' Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> --- .github/workflows/pr-build-check.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pr-build-check.yaml b/.github/workflows/pr-build-check.yaml index 5e5501d..35896fa 100644 --- a/.github/workflows/pr-build-check.yaml +++ b/.github/workflows/pr-build-check.yaml @@ -35,6 +35,7 @@ jobs: owner: context.repo.owner, repo: context.repo.repo, pull_number: context.payload.pull_request.number, - event: 'REQUEST_CHANGES', + event: 'COMMENT', body: 'Failed To BUILD! Please check the build logs for details and Resolve the issues before merging.' + }); }); \ No newline at end of file