Skip to content

Update actions/cache action to v4.0.1 - autoclosed #674

Update actions/cache action to v4.0.1 - autoclosed

Update actions/cache action to v4.0.1 - autoclosed #674

Workflow file for this run

name: CI
on:
push:
branches:
- master
pull_request:
jobs:
build:
strategy:
matrix:
java: [11]
os: [ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
name: on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@v3
with:
distribution: 'temurin'
java-version: ${{ matrix.java }}
- name: Cache dependencies
uses: actions/[email protected]
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven
- name: Build with Maven
run: mvn -Penable-jacoco clean verify -B -V -ntp
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
file: '*jacoco.xml'