Merge pull request #1 from koagonzalo11/snyk-upgrade-901d906c5e4388a1… #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
- push | |
- pull_request | |
jobs: | |
test: | |
strategy: | |
max-parallel: 2 | |
matrix: | |
os: [ ubuntu-latest, windows-latest ] | |
java: [ 11, 21 ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup | |
uses: actions/setup-java@v4 | |
with: | |
distribution: 'zulu' | |
java-version: ${{ matrix.java }} | |
- name: Maven | |
uses: stCarolas/setup-maven@v5 | |
with: | |
maven-version: 3.9.8 | |
- name: Cache | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-m2 | |
- name: Package | |
run: mvn -B clean package install jacoco:report | |
- name: Coverage | |
uses: codecov/[email protected] | |
with: | |
file: target/site/jacoco/jacoco.xml |