From c5396dfc119840347a50ef3030b53894d370ba8f Mon Sep 17 00:00:00 2001 From: ofek29 Date: Sun, 6 Jul 2025 15:06:45 +0000 Subject: [PATCH 1/2] chore: add test CI workflow --- .github/workflows/ci.yml | 45 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 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 0000000..86654b6 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,45 @@ +name: CI + +on: + push: + branches: + - main + paths-ignore: + - "*.md" + pull_request: + branches: + - main + paths-ignore: + - "*.md" + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + + strategy: + matrix: + java-version: [21] + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up JDK ${{ matrix.java-version }} + uses: actions/setup-java@v4 + with: + java-version: ${{ matrix.java-version }} + distribution: "temurin" + cache: maven + + - name: Cache Maven dependencies + uses: actions/cache@v4 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 + + - name: Run tests + run: mvn clean test From 0b4496b18f81659084927b15fef6dc848a70ce65 Mon Sep 17 00:00:00 2001 From: ofek29 Date: Tue, 8 Jul 2025 08:54:19 +0000 Subject: [PATCH 2/2] chore: use Java 21 --- .github/workflows/ci.yml | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 86654b6..b190577 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,18 +19,14 @@ jobs: test: runs-on: ubuntu-latest - strategy: - matrix: - java-version: [21] - steps: - name: Checkout code uses: actions/checkout@v4 - - name: Set up JDK ${{ matrix.java-version }} + - name: Set up JDK 21 uses: actions/setup-java@v4 with: - java-version: ${{ matrix.java-version }} + java-version: "21" distribution: "temurin" cache: maven