From c605df04f9a13dfd5ac74429f2367db841e35b9e Mon Sep 17 00:00:00 2001 From: gogoleelee88 Date: Thu, 28 Aug 2025 15:00:51 +0900 Subject: [PATCH] ci: add GitHub Actions CI workflow with Java 8/11/17 matrix build - Add .github/workflows/ci.yml for automated testing - Support Java 8, 11, 17 with Temurin distribution - UTF-8 encoding and Asia/Seoul timezone configuration - Upload surefire/failsafe reports on test failures --- .github/workflows/ci.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 00000000..3c0c1077 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,36 @@ +name: CI + +on: + push: + branches: [ "**" ] + pull_request: + branches: [ "**" ] + +jobs: + build: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + java: [ 8, 11, 17 ] + steps: + - name: Checkout + uses: actions/checkout@v4 + + - name: Set up JDK ${{ matrix.java }} + uses: actions/setup-java@v4 + with: + distribution: temurin + java-version: ${{ matrix.java }} + cache: maven + + - name: Build & Test (UTF-8 / Asia/Seoul) + run: mvn -B -U -q -Dfile.encoding=UTF-8 -Duser.timezone=Asia/Seoul test + + - name: Upload surefire reports on failure + if: failure() + uses: actions/upload-artifact@v4 + with: + name: surefire-reports-java-${{ matrix.java }} + path: '**/target/surefire-reports/' + if-no-files-found: ignore \ No newline at end of file