Skip to content

Merge pull request #76 from akuhtz/renovate/actions-cache-4.x #214

Merge pull request #76 from akuhtz/renovate/actions-cache-4.x

Merge pull request #76 from akuhtz/renovate/actions-cache-4.x #214

Workflow file for this run

name: Java CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
# test against latest update of each major Java version, as well as specific updates of LTS versions:
java: [ 8, 11, 17 ]
name: Java ${{ matrix.java }} build
steps:
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
- name: Set up JDK ${{ matrix.java }}
uses: actions/setup-java@9704b39bf258b59bc04b50fa2dd55e9ed76b47a8 # v4.1.0
with:
distribution: 'temurin' # See 'Supported distributions' for available options
java-version: ${{ matrix.java }}
- name: Cache Maven packages
uses: actions/cache@ab5e6d0c87105b4c9c2047343972218f562e4319 # v4.0.1
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-m2
- name: Show Maven version
run: mvn --version
- name: Build with Maven
run: mvn --batch-mode --update-snapshots verify