Skip to content

Commit

Permalink
Builds and tests all major Java versions on the Ubuntu and MacOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
carldea committed Nov 30, 2020
1 parent 402acb6 commit c61bbbf
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,26 @@ on: [push, pull_request]

jobs:
build-and-test:
runs-on: ubuntu-latest

runs-on: ${{ matrix.os }}
strategy:
matrix:
java: [8, 11, 15]
os: [ubuntu-latest, macOS-latest]
fail-fast: false
max-parallel: 3
name: Build and Test JDK ${{ matrix.java }}, ${{ matrix.os }}
steps:

- uses: actions/checkout@v2
- name: Set up JDK 1.8
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: 1.8
java-version: ${{ matrix.java }}
- uses: actions/cache@v1
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
${{ runner.os }}-maven-
- name: Build with Maven
run: mvn clean install
- name: Remove JTS artifacts from cache
Expand Down

0 comments on commit c61bbbf

Please sign in to comment.