From 9785b08c1850559887d57338615503a65f7722f4 Mon Sep 17 00:00:00 2001 From: jalowaini Date: Wed, 23 Apr 2025 13:50:38 +0300 Subject: [PATCH] Add GitHub Actions CI workflow for PR --- .github/workflows/ci-pr.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/ci-pr.yml diff --git a/.github/workflows/ci-pr.yml b/.github/workflows/ci-pr.yml new file mode 100644 index 0000000..e8750f8 --- /dev/null +++ b/.github/workflows/ci-pr.yml @@ -0,0 +1,26 @@ +name: CI on Pull Request + +on: + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Java + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + + - name: Build with Maven + run: mvn clean install + + - name: Run Unit Tests + run: mvn test