From b384435d4aa0f2de527f2db2ab452890bffc426d Mon Sep 17 00:00:00 2001 From: Jannik Volkland Date: Wed, 19 Feb 2025 15:14:18 +0100 Subject: [PATCH] ci: run maven tests on PR Co-authored-by: Torsten Will --- .github/workflows/verify-pull-request.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/verify-pull-request.yml diff --git a/.github/workflows/verify-pull-request.yml b/.github/workflows/verify-pull-request.yml new file mode 100644 index 0000000..257abd1 --- /dev/null +++ b/.github/workflows/verify-pull-request.yml @@ -0,0 +1,19 @@ +name: Verify Pull Request + +on: + pull_request: + branches: [main] + +jobs: + check-pr: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: "zulu" # See 'Supported distributions' for available options + java-version: "21" + cache: maven + server-id: central + - name: Build and Test + run: mvn -B clean test