Skip to content

Bump actions/checkout from 4.1.7 to 4.2.0 #133

Bump actions/checkout from 4.1.7 to 4.2.0

Bump actions/checkout from 4.1.7 to 4.2.0 #133

name: Build pull request
on:
pull_request:
branches:
- master
permissions:
contents: read
jobs:
build:
name: Build pull request
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@91182cccc01eb5e619899d80e4e971d6181294a7 # v2.10.1
with:
egress-policy: audit
- uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0
- uses: gradle/actions/wrapper-validation@d156388eb19639ec20ade50009f3d199ce1e2808 # v4.1.0
- uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2
with:
distribution: 'temurin'
java-version: '21'
cache: "gradle"
- name: Build
run: ./gradlew build
- name: Build documentation
run: ./gradlew buildDocumentation
- name: Check repository for commits
run: |
if [ -n "$(git status --porcelain)" ]; then
echo "Build created uncommitted changes in repository"
exit 1
fi