From 8e57be1ebbf1a822e7a9446e80b5c8136179a7a5 Mon Sep 17 00:00:00 2001 From: vladyslavpalamarchuk Date: Thu, 31 Oct 2024 16:34:29 +0200 Subject: [PATCH] Add CI workflow to build and run tests --- .github/workflows/java-ci.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/java-ci.yml diff --git a/.github/workflows/java-ci.yml b/.github/workflows/java-ci.yml new file mode 100644 index 0000000..49bc59f --- /dev/null +++ b/.github/workflows/java-ci.yml @@ -0,0 +1,27 @@ +name: Java CI + +on: + push: + branches: [ develop, main ] + pull_request: + branches: [ develop, main ] + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up JDK 21 + uses: actions/setup-java@v3 + with: + java-version: '21' + distribution: 'temurin' + + - name: Build with Maven + run: mvn clean install + + - name: Run Tests + run: mvn test