File tree 2 files changed +64
-4
lines changed
2 files changed +64
-4
lines changed Original file line number Diff line number Diff line change 17
17
IS_CI : true
18
18
SIMBOT_LOCAL : false
19
19
GRADLE_OPTS : " -Dfile.encoding=UTF-8"
20
+ GRADLE_VERSION : 8.10.2
20
21
21
22
jobs :
22
23
test :
34
35
- name : Setup Gradle
35
36
uses : gradle/actions/setup-gradle@v3
36
37
with :
37
- gradle-version : 8.5
38
+ gradle-version : ${{ env.GRADLE_VERSION }}
38
39
- run : gradle assemble build -s
39
40
40
41
publish :
53
54
- name : Test and publish to sonatype
54
55
uses : gradle/actions/setup-gradle@v3
55
56
with :
56
- gradle-version : 8.5
57
+ gradle-version : ${{ env.GRADLE_VERSION }}
57
58
arguments :
58
59
publishToSonatype
59
60
closeAndReleaseStagingRepositories
86
87
- name : Publish to gradle
87
88
uses : gradle/actions/setup-gradle@v3
88
89
with :
89
- gradle-version : 8.5
90
+ gradle-version : ${{ env.GRADLE_VERSION }}
90
91
arguments : |
91
92
build
92
93
publishPlugins
@@ -117,7 +118,7 @@ jobs:
117
118
- name : Create changelog
118
119
uses : gradle/actions/setup-gradle@v3
119
120
with :
120
- gradle-version : 8.5
121
+ gradle-version : ${{ env.GRADLE_VERSION }}
121
122
arguments : createChangelog
122
123
123
124
# https://github.com/softprops/action-gh-release
Original file line number Diff line number Diff line change
1
+ name : Test Branch
2
+ on :
3
+ pull_request :
4
+ branches :
5
+ - ' dev'
6
+ paths :
7
+ - ' **.java'
8
+ - ' **.kt'
9
+ - ' **.kts'
10
+ - ' */src/*/kotlin/**'
11
+ - ' */src/*/java/**'
12
+ - ' */src/*/resource/**'
13
+ - ' gradle/**'
14
+
15
+ concurrency :
16
+ group : ${{ github.workflow }}-${{ github.ref }}
17
+ cancel-in-progress : true
18
+
19
+ env :
20
+ IS_CI : true
21
+ GRADLE_OPTS : " -Dfile.encoding=UTF-8"
22
+ GRADLE_VERSION : 8.10.2
23
+
24
+ jobs :
25
+ build-test :
26
+ name : Build and test
27
+ strategy :
28
+ matrix :
29
+ os : [ macos-latest, windows-latest, ubuntu-latest ]
30
+ runs-on : ${{ matrix.os }}
31
+ steps :
32
+ - uses : actions/checkout@v4
33
+ - uses : actions/setup-java@v4
34
+ with :
35
+ distribution : ' zulu'
36
+ java-version : 11
37
+ cache : ' gradle'
38
+
39
+ - name : Run All Tests
40
+ uses : gradle/actions/setup-gradle@v3
41
+ with :
42
+ gradle-version : ${{ env.GRADLE_VERSION }}
43
+ arguments : |
44
+ assemble
45
+ build
46
+ allTests
47
+ --info
48
+ --warning-mode all
49
+ # --build-cache
50
+ # -Porg.gradle.daemon=false
51
+ # -Porg.gradle.jvmargs="-Xmx4g -Xms2g -XX:MaxMetaspaceSize=1g -Dfile.encoding=UTF-8"
52
+
53
+ - name : Upload test reports
54
+ uses : actions/upload-artifact@v4
55
+ if : ${{ always() }}
56
+ with :
57
+ name : test-reports-${{ matrix.os }}
58
+ path : ' **/build/reports/tests'
59
+ retention-days : 7
You can’t perform that action at this time.
0 commit comments