Skip to content

Bump actions/setup-java from 1 to 4 #72

Bump actions/setup-java from 1 to 4

Bump actions/setup-java from 1 to 4 #72

Workflow file for this run

name: Test
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
jdk: [8,9,10,11,17]
fail-fast: true
runs-on: ${{ matrix.os }}
name: Java ${{ matrix.jdk }} on ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Java
uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: ${{ matrix.jdk }}
- 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 and test
run: mvn -B clean verify --file pom.xml