From 3434875ed5e4bd2743a06926fcfacee1e0c4b9e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=BCrgen=20Kuusik?= Date: Mon, 8 Jun 2026 21:49:01 +0300 Subject: [PATCH] Create pull-request.yml --- .github/workflows/pull-request.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/pull-request.yml diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml new file mode 100644 index 0000000..7f7fa9f --- /dev/null +++ b/.github/workflows/pull-request.yml @@ -0,0 +1,26 @@ +name: Pull Request Checks + +on: + pull_request: + branches: + - main # only PRs targeting main trigger this + +jobs: + test: + name: Run Java Unit Tests + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Java 21 + uses: actions/setup-java@v4 + with: + java-version: '21' + distribution: 'temurin' + cache: maven + + - name: Run unit tests + working-directory: task_planner + run: mvn test -Dtest='!TaskPlannerApplicationTests' \ No newline at end of file