Change Violation to use record style accessors #541
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build | |
on: [pull_request, workflow_dispatch] | |
jobs: | |
build: | |
runs-on: ${{ matrix.os }} | |
permissions: | |
contents: read | |
packages: write | |
strategy: | |
fail-fast: false | |
matrix: | |
java_version: [17, 20] | |
os: [ubuntu-latest] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Java | |
uses: actions/setup-java@v3 | |
with: | |
java-version: ${{ matrix.java_version }} | |
distribution: "zulu" | |
- name: Maven cache | |
uses: actions/cache@v3 | |
env: | |
cache-name: maven-cache | |
with: | |
path: ~/.m2 | |
key: build-${{ env.cache-name }} | |
- name: Maven version | |
run: mvn --version | |
- name: Build with Maven | |
env: | |
JAVA_VERSION: ${{ matrix.java_version }} | |
run: | | |
mvn clean package -Ptest |