File tree 3 files changed +13
-11
lines changed
3 files changed +13
-11
lines changed Original file line number Diff line number Diff line change 6
6
branches :
7
7
- ' main'
8
8
9
+ permissions :
10
+ contents : write # https://github.com/gradle/actions/blob/main/setup-gradle/README.md#basic-usage
11
+
9
12
jobs :
10
13
build_and_test_with_code_coverage :
11
14
name : Build, test and upload code coverage
@@ -20,12 +23,14 @@ jobs:
20
23
with :
21
24
distribution : temurin
22
25
java-version : 11
23
- - uses : gradle/gradle-build-action@v2
24
- name : build and test
26
+ - uses : gradle/actions/setup-gradle@v3
27
+ name : Setup Gradle
25
28
with :
26
- arguments : check build -x detekt -Pdetekt.multiplatform.disabled=true --scan
27
29
gradle-version : wrapper
30
+ cache-encryption-key : ${{ secrets.GRADLE_ENCRYPTION_KEY }}
28
31
dependency-graph : generate-and-submit
32
+ - name : build and test
33
+ run : ./gradlew check build -x detekt -Pdetekt.multiplatform.disabled=true --scan
29
34
- name : Upload test reports
30
35
if : ${{ failure() }} # runs only if previous step has failed, the entire workflow will still be marked as failed
31
36
uses : actions/upload-artifact@v4
38
43
flags : unittests
39
44
fail_ci_if_error : true # optional (default = false)
40
45
41
- - uses : gradle/gradle-build-action@v2
42
- name : run detekt
43
- with :
44
- arguments : check -Pdetekt.multiplatform.disabled=false -PdetektAutoCorrect=true
45
- gradle-version : wrapper
46
+ - name : run detekt
47
+ run : ./gradlew check -Pdetekt.multiplatform.disabled=false -PdetektAutoCorrect=true
46
48
- run : git status && git diff
47
49
if : ${{ always() }}
48
50
- uses : reviewdog/action-suggester@v1
Original file line number Diff line number Diff line change 1
1
distributionBase =GRADLE_USER_HOME
2
2
distributionPath =wrapper/dists
3
- distributionSha256Sum =3e1af3ae886920c3ac87f7a91f816c0c7c436f276a6eefdb3da152100fef72ae
4
- distributionUrl =https\://services.gradle.org/distributions/gradle-8.4 -bin.zip
3
+ distributionSha256Sum =9631d53cf3e74bfa726893aee1f8994fee4e060c401335946dba2156f440f24c
4
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.6 -bin.zip
5
5
networkTimeout =10000
6
6
validateDistributionUrl =true
7
7
zipStoreBase =GRADLE_USER_HOME
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ pluginManagement {
6
6
}
7
7
8
8
plugins {
9
- id(" com.gradle.enterprise" ) version(" 3.15.1 " )
9
+ id(" com.gradle.enterprise" ) version(" 3.16.2 " )
10
10
id(" org.ajoberstar.reckon.settings" ) version(" 0.18.0" )
11
11
}
12
12
You can’t perform that action at this time.
0 commit comments