Skip to content

Update dependency checkstyle to v10.21.3 #449

Update dependency checkstyle to v10.21.3

Update dependency checkstyle to v10.21.3 #449

Workflow file for this run

# yamllint disable rule:line-length
# This workflow uses actions that are not certified by GitHub.
# They are provided by a third-party and are governed by
# separate terms of service, privacy policy, and support
# documentation.
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
# yamllint enable rule:line-length
---
name: Java CI Tests with Gradle
on: # yamllint disable-line rule:truthy
push:
branches: ["main"]
pull_request:
# The branches below must be a subset of the branches above
branches: ["main"]
workflow_dispatch:
permissions:
contents: read
jobs:
gradle:
name: Java Gradle CI Test
strategy:
matrix:
os: ["windows-2022", "ubuntu-24.04", "macos-14"]
java: ['20', '21', '22']
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: ${{ matrix.java }}
distribution: temurin
- name: Validate Gradle wrapper
uses: gradle/actions/wrapper-validation@v4
- name: Setup Gradle
uses: gradle/actions/setup-gradle@v4
- name: Clean
run: ./gradlew --console=verbose clean
- name: Lint
run: ./gradlew --console=verbose checkstyleMain checkstyleTest
- name: Run tests
run: ./gradlew --console=verbose test -x checkstyleMain checkstyleTest