Skip to content

Merge pull request #11 from sdeleuze/patch-1 #18

Merge pull request #11 from sdeleuze/patch-1

Merge pull request #11 from sdeleuze/patch-1 #18

Workflow file for this run

name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '17', '21' ]
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v4
with:
distribution: temurin
java-version: ${{ matrix.java }}
cache: maven
- name: Build and test
run: mvn -B verify -P coverage-check
- name: Upload JaCoCo reports
if: always() && matrix.java == '21'
uses: actions/upload-artifact@v4
with:
name: jacoco-reports
path: '**/target/site/jacoco/'
if-no-files-found: ignore