Skip to content

Develop #321

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions .github/workflows/java-gradle-checkstyle.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# 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:
lint:
name: Java Gradle CI LINT Checkstyle

strategy:
matrix:
os: ["windows-2022", "ubuntu-24.04", "macos-14"]
java: ['22', '23', '24']
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: Tool test
run: |
echo "Java version: ${{ matrix.java }}"
java -version
echo "OS: ${{ matrix.os }}"
echo "Gradle version:"
./gradlew --version
- 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
2 changes: 1 addition & 1 deletion .github/workflows/java-gradle-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 22
java-version: 24
# Alternative distribution options are available
distribution: temurin
- name: Validate Gradle wrapper
Expand Down
7 changes: 2 additions & 5 deletions .github/workflows/java-gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ permissions:
contents: read

jobs:
gradle:
name: Java Gradle CI Test
test:
name: Java Gradle CI Test JUNit Jupiter

strategy:
matrix:
Expand Down Expand Up @@ -55,8 +55,5 @@ jobs:
- 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