Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Builds and tests all major Java versions on Ubuntu and MacOS OSes. #646

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 ${{ matrix.java }}
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