1- name : Verify state
1+ name : Verify
22
33on : [push, pull_request]
44
5+ env :
6+ JAVA_VERSION : 21
7+ JAVA_DISTRIBUTION : temurin
8+
59jobs :
6- build :
7- name : Build
10+ compile :
11+ name : Compile
12+ runs-on : ubuntu-latest
13+
14+ steps :
15+ - uses : actions/checkout@v5
16+ - name : Set up JDK ${{ env.JAVA_VERSION }}
17+ uses : actions/setup-java@v5
18+ with :
19+ distribution : ${{ env.JAVA_DISTRIBUTION }}
20+ java-version : ${{ env.JAVA_VERSION }}
21+ architecture : x64
22+ - name : Build with Gradle
23+ run : ./gradlew jar
24+
25+ license :
26+ name : License
827 runs-on : ubuntu-latest
928
1029 steps :
1130 - uses : actions/checkout@v5
12- - name : Set up JDK 21
31+ - name : Set up JDK ${{ env.JAVA_VERSION }}
1332 uses : actions/setup-java@v5
1433 with :
15- distribution : temurin
16- java-version : 21
34+ distribution : ${{ env.JAVA_DISTRIBUTION }}
35+ java-version : ${{ env.JAVA_VERSION }}
1736 architecture : x64
1837 - name : Build with Gradle
19- run : ./gradlew --build-cache build
38+ run : ./gradlew spotlessCheck
39+
40+ test :
41+ name : Testing
42+ runs-on : ubuntu-latest
43+
44+ steps :
45+ - uses : actions/checkout@v5
46+ - name : Set up JDK ${{ env.JAVA_VERSION }}
47+ uses : actions/setup-java@v5
48+ with :
49+ distribution : ${{ env.JAVA_DISTRIBUTION }}
50+ java-version : ${{ env.JAVA_VERSION }}
51+ architecture : x64
2052 - name : Test with Gradle
2153 run : ./gradlew test
2254
@@ -26,11 +58,11 @@ jobs:
2658
2759 steps :
2860 - uses : actions/checkout@v5
29- - name : Set up JDK 21
61+ - name : Set up JDK ${{ env.JAVA_VERSION }}
3062 uses : actions/setup-java@v5
3163 with :
32- distribution : temurin
33- java-version : 21
64+ distribution : ${{ env.JAVA_DISTRIBUTION }}
65+ java-version : ${{ env.JAVA_VERSION }}
3466 architecture : x64
3567 - name : Build with Gradle
36- run : ./gradlew javadoc
68+ run : ./gradlew javadoc
0 commit comments