Skip to content

Bump actions/checkout from 4.1.1 to 4.1.6 #76

Bump actions/checkout from 4.1.1 to 4.1.6

Bump actions/checkout from 4.1.1 to 4.1.6 #76

Workflow file for this run

name: Build and test
on:
push:
pull_request:
workflow_dispatch: # Allow running manually from web UI
jobs:
package:
name: Maven Build and Test
runs-on: ubuntu-latest
# Only run on pushes or if pull request from fork
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.event.pull_request.base.repo.full_name
permissions:
checks: write # to publish unit test results
steps:
- name: Check out
uses: actions/checkout@a5ac7e51b41094c92402da3b24376905380afc29 # v4.1.6
- name: Set up JDK 17
uses: actions/setup-java@387ac29b308b003ca37ba93a6cab5eb57c8f5f93 # v4.0.0
with:
distribution: 'temurin'
java-version: '17'
cache: 'maven'
- name: Build with Maven
run: mvn --batch-mode -show-version --update-snapshots --errors package
- name: Publish Unit Test Results
uses: dorny/test-reporter@afe6793191b75b608954023a46831a3fe10048d4 # v1.7.0
if: always() # also run if build step failed
with:
name: JUnit Report
path: target/surefire-reports/*.xml
reporter: java-junit