From 2912686269f03227ddd9b497f38839ba88a2fa8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Szeremeta?= Date: Sun, 21 Mar 2021 00:10:21 +0100 Subject: [PATCH] Add build and test on multiple Java version on Ubuntu/MacOS/Windows --- .github/workflows/maven.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 8d2ec01..ab7bd67 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -5,13 +5,17 @@ on: [push, pull_request] jobs: build: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + java-version: [ 8, 11, 15 ] steps: - uses: actions/checkout@v2 - - name: Set up JDK + - name: Set up JDK ${{ matrix.java-version }} uses: actions/setup-java@v1 with: - java-version: 8 + java-version: ${{ matrix.java-version }} - name: Build with Maven run: mvn -B package --file pom.xml