Bump actions/setup-java from 3 to 4 (#452) #1069
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: | |
push: | |
branches: | |
- master | |
pull_request: | |
jobs: | |
checkstyle: | |
runs-on: ubuntu-latest | |
name: Checkstyle | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Build with Maven | |
run: ./mvnw -B install -DskipTests -Pcheckstyle,findbugs | |
build: | |
needs: checkstyle | |
runs-on: ubuntu-latest | |
name: Build | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup JDK | |
uses: actions/setup-java@v4 | |
with: | |
java-version: 17 | |
distribution: 'temurin' | |
cache: 'maven' | |
- name: Build with Maven | |
run: ./mvnw verify | |
- name: Upload Test Results | |
if: ${{ always() }} | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Test Results | |
path: '**/*-reports/TEST-*.xml' | |
event_file: | |
name: Upload event file | |
runs-on: ubuntu-latest | |
steps: | |
- name: Upload | |
uses: actions/upload-artifact@v3 | |
with: | |
name: Event File | |
path: ${{ github.event_path }} |