From 5a9a71f48a524b45f76a72a9cf1370189153c155 Mon Sep 17 00:00:00 2001 From: Erik Date: Mon, 12 Jul 2021 19:02:06 +0200 Subject: [PATCH] Set up GitHub actions maven workflow (#1454) --- .github/workflows/ci.yml | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..42bb042 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,32 @@ +name: CI + +on: + push: + branches: + - main + pull_request: + +jobs: + test: + name: "Test on JDK ${{ matrix.java }}" + runs-on: ubuntu-latest + strategy: + matrix: + java: [ 8, 11, 16 ] + steps: + - name: "Checkout" + uses: actions/checkout@v2 + - name: "Set up JDK ${{ matrix.java }}" + uses: actions/setup-java@v2 + with: + java-version: ${{ matrix.java }} + distribution: adopt + - name: "Cache local Maven repository" + uses: actions/cache@v2 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- + - name: "Test" + run: mvn --batch-mode verify