From 83e92ec60b609a0c9ccc94fcb0339b9b4945cf46 Mon Sep 17 00:00:00 2001 From: VladyslavPalamarchuk <65964034+VladyslavPalamarchuk@users.noreply.github.com> Date: Thu, 31 Oct 2024 16:48:52 +0200 Subject: [PATCH] [TRAC-11] - Add CI workflow to build and run tests --- .github/workflows/java-build-and-test.yml | 28 +++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/java-build-and-test.yml diff --git a/.github/workflows/java-build-and-test.yml b/.github/workflows/java-build-and-test.yml new file mode 100644 index 0000000..f5b18b6 --- /dev/null +++ b/.github/workflows/java-build-and-test.yml @@ -0,0 +1,28 @@ +name: Java build and test + +on: + push: + branches: [ develop, main ] + pull_request: + branches: [ develop, main ] + workflow_dispatch: + +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