From 69e68aa1340309a8c864be0605f916c90501abee Mon Sep 17 00:00:00 2001 From: ssk Date: Tue, 21 Apr 2026 09:42:17 +0900 Subject: [PATCH] =?UTF-8?q?ci:=20GitHub=20Actions=EB=A1=9C=20=EB=B9=8C?= =?UTF-8?q?=EB=93=9C/=ED=85=8C=EC=8A=A4=ED=8A=B8=20=EB=AC=B4=EA=B2=B0?= =?UTF-8?q?=EC=84=B1=20=EA=B2=80=EC=A6=9D=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - .github/workflows/ci.yml 신규 (push/PR to main 트리거) - Temurin JDK 17, gradle wrapper 검증, setup-gradle 캐시 - compileKotlin / compileTestKotlin / test 단계로 나눠 실행 - 실패 시 test report 아티팩트 업로드 (retention 7일) - gradlew 실행 권한을 git 단에서 부여 (mode 100644 → 100755) Co-Authored-By: Claude Opus 4.7 (1M context) --- .github/workflows/ci.yml | 45 ++++++++++++++++++++++++++++++++++++++++ gradlew | 0 2 files changed, 45 insertions(+) create mode 100644 .github/workflows/ci.yml mode change 100644 => 100755 gradlew diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..420f726 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,45 @@ +name: CI + +on: + push: + branches: [main] + pull_request: + branches: [main] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + build: + name: Build & Test + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: '17' + + - name: Validate Gradle wrapper + uses: gradle/actions/wrapper-validation@v4 + + - name: Set up Gradle + uses: gradle/actions/setup-gradle@v4 + + - name: Compile + run: ./gradlew compileKotlin compileTestKotlin --stacktrace + + - name: Test + run: ./gradlew test --stacktrace + + - name: Upload test report + if: failure() + uses: actions/upload-artifact@v4 + with: + name: test-report + path: build/reports/tests/test + retention-days: 7 diff --git a/gradlew b/gradlew old mode 100644 new mode 100755