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