diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 7c89ef4..148680d 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,16 +1,21 @@ name: Maven Test -on: [push, pull_request] +on: [push] jobs: build: - runs-on: [ubuntu-latest, windows-latest] + runs-on: ${{ matrix.os }} + strategy: + matrix: + java_version: [11, 13] + os: [ubuntu-latest, windows-latest] steps: - - uses: actions/checkout@v2 - - name: Set up JDK 11 - uses: actions/setup-java@v1.3.0 + - name: Checkout + uses: actions/checkout@v2 + - name: Setup Java JDK + uses: actions/setup-java@v1 with: - java-version: 11 + java-version: ${{ matrix.java_version }} - name: Build with Maven run: mvn -B package --file pom.xml