Skip to content

Commit c3677cb

Browse files
authored
Merge pull request #321 from sir-gon/develop
Develop
2 parents f88a1ba + 3eccba4 commit c3677cb

File tree

3 files changed

+62
-6
lines changed

3 files changed

+62
-6
lines changed
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# yamllint disable rule:line-length
2+
# This workflow uses actions that are not certified by GitHub.
3+
# They are provided by a third-party and are governed by
4+
# separate terms of service, privacy policy, and support
5+
# documentation.
6+
# This workflow will build a Java project with Gradle and cache/restore any dependencies to improve the workflow execution time
7+
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-java-with-gradle
8+
# yamllint enable rule:line-length
9+
---
10+
11+
name: Java CI Tests with Gradle
12+
13+
on: # yamllint disable-line rule:truthy
14+
push:
15+
branches: ["main"]
16+
pull_request:
17+
# The branches below must be a subset of the branches above
18+
branches: ["main"]
19+
workflow_dispatch:
20+
21+
permissions:
22+
contents: read
23+
24+
jobs:
25+
lint:
26+
name: Java Gradle CI LINT Checkstyle
27+
28+
strategy:
29+
matrix:
30+
os: ["windows-2022", "ubuntu-24.04", "macos-14"]
31+
java: ['22', '23', '24']
32+
runs-on: ${{ matrix.os }}
33+
34+
steps:
35+
- uses: actions/checkout@v4
36+
- name: Set up JDK
37+
uses: actions/setup-java@v4
38+
with:
39+
java-version: ${{ matrix.java }}
40+
distribution: temurin
41+
42+
- name: Tool test
43+
run: |
44+
echo "Java version: ${{ matrix.java }}"
45+
java -version
46+
echo "OS: ${{ matrix.os }}"
47+
echo "Gradle version:"
48+
./gradlew --version
49+
- name: Validate Gradle wrapper
50+
uses: gradle/actions/wrapper-validation@v4
51+
52+
- name: Setup Gradle
53+
uses: gradle/actions/setup-gradle@v4
54+
55+
- name: Clean
56+
run: ./gradlew --console=verbose clean
57+
58+
- name: Lint
59+
run: ./gradlew --console=verbose checkstyleMain checkstyleTest

.github/workflows/java-gradle-coverage.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
- name: Set up JDK
3232
uses: actions/setup-java@v4
3333
with:
34-
java-version: 22
34+
java-version: 24
3535
# Alternative distribution options are available
3636
distribution: temurin
3737
- name: Validate Gradle wrapper

.github/workflows/java-gradle.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ permissions:
2222
contents: read
2323

2424
jobs:
25-
gradle:
26-
name: Java Gradle CI Test
25+
test:
26+
name: Java Gradle CI Test JUNit Jupiter
2727

2828
strategy:
2929
matrix:
@@ -55,8 +55,5 @@ jobs:
5555
- name: Clean
5656
run: ./gradlew --console=verbose clean
5757

58-
- name: Lint
59-
run: ./gradlew --console=verbose checkstyleMain checkstyleTest
60-
6158
- name: Run tests
6259
run: ./gradlew --console=verbose test -x checkstyleMain checkstyleTest

0 commit comments

Comments
 (0)