Skip to content

Bump actions/upload-artifact from 3 to 4 #105

Bump actions/upload-artifact from 3 to 4

Bump actions/upload-artifact from 3 to 4 #105

Workflow file for this run

# This workflow will build a Java project with Maven
# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven
name: Tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
java-version: [ 11, 17 ]
max-parallel: 4
name: Test JDK ${{ matrix.java-version }}, ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java-version }}
uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: ${{ matrix.java-version }}
- name: Cache Maven packages
uses: actions/cache@v4
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-m2
- name: Build with Maven
run: mvn -B package --file pom.xml
- name: Upload code coverage
uses: actions/upload-artifact@v4
with:
name: jacoco-${{ matrix.os }}-${{ matrix.java-version }}
path: target/site/jacoco/