Skip to content

Add JTS core as a dependency (#20) #75

Add JTS core as a dependency (#20)

Add JTS core as a dependency (#20) #75

Workflow file for this run

name: tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
tests:
name: Java ${{ matrix.java-version }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
java-distribution: [adopt]
java-version: [8, 11, 15]
steps:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: actions/setup-java@v2
with:
distribution: "${{ matrix.java-distribution }}"
java-version: "${{ matrix.java-version }}"
- uses: actions/cache@v2
id: maven-cache
with:
path: ~/.m2/
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Format check
if: ${{ matrix.java-version != 8 }}
run: mvn com.spotify.fmt:fmt-maven-plugin:check
- name: Tests
run: mvn -B -V clean test site
- name: Check for uncommitted changes
run: git diff --exit-code
tests-coverage:
name: Java (Coverage) ${{ matrix.java-version }} ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
java-distribution: [adopt]
# On 8 due to https://github.com/trautonen/coveralls-maven-plugin/issues/141
java-version: [8]
steps:
- uses: actions/[email protected]
with:
submodules: recursive
- uses: actions/setup-java@v2
with:
distribution: "${{ matrix.java-distribution }}"
java-version: "${{ matrix.java-version }}"
- uses: actions/cache@v2
id: maven-cache
with:
path: ~/.m2/
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Coverage report
env:
CI_NAME: github
COVERALLS_SECRET: ${{ secrets.GITHUB_TOKEN }}
run: |
mvn clean test jacoco:report coveralls:report --no-transfer-progress -DrepoToken=$COVERALLS_SECRET -DpullRequest=${{ github.event.number }}