diff --git a/.github/workflows/test-pr.yml b/.github/workflows/test-pr.yml new file mode 100644 index 0000000..c370590 --- /dev/null +++ b/.github/workflows/test-pr.yml @@ -0,0 +1,28 @@ +name: PR Quality Assurance + +on: + pull_request: + types: [opened, synchronize, reopened] + +jobs: + build: + name: Checkout and Build + runs-on: ubuntu-20.04 + + strategy: + matrix: + java-version: [8, 11, 17] + + steps: + - uses: actions/checkout@v3 + - name: JDK setup + uses: actions/setup-java@v3 + with: + java-version: ${{ matrix.java-version }} + distribution: 'temurin' + cache: maven + - name: Build with Maven + run: mvn --batch-mode --update-snapshots install + - name: Test with Maven + if: (matrix.java-version == 8) + run: mvn --batch-mode verify -DjacocoAgg