Skip to content

Update actions/setup-java action to v4 #703

Update actions/setup-java action to v4

Update actions/setup-java action to v4 #703

Workflow file for this run

name: Maven CI
on: [push,workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
java: [ '8', '11', '17' ]
steps:
- uses: actions/checkout@v4
- name: Set up Java ${{ matrix.Java }}
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
server-id: github # Value of the distributionManagement/repository/id field of the pom.xml
settings-path: ${{ github.workspace }} # location for the settings.xml file
- name: Build with Maven
run: mvn -B verify checkstyle:checkstyle --file pom.xml