File tree Expand file tree Collapse file tree 2 files changed +45
-46
lines changed
Expand file tree Collapse file tree 2 files changed +45
-46
lines changed Original file line number Diff line number Diff line change @@ -2,19 +2,51 @@ name: ci
22
33on :
44 push :
5- branches :
6- - main
5+ branches : [ "main" ]
76 pull_request :
8- branches :
9- - main
107
118jobs :
12- detekt :
13- uses : ./.github/workflows/gradle-build.yml
14- with :
15- gradle-task : clean detekt -x test
16-
17- test :
18- uses : ./.github/workflows/gradle-build.yml
19- with :
20- gradle-task : clean test -x detekt
9+ build :
10+ runs-on : ubuntu-latest
11+ permissions :
12+ contents : read
13+
14+ steps :
15+ - name : Checkout
16+ uses : actions/checkout@v4
17+
18+ - name : Validate Gradle Wrapper
19+ uses : gradle/wrapper-validation-action@v2
20+
21+ - name : Setup Java
22+ uses : actions/setup-java@v4
23+ with :
24+ distribution : liberica
25+ java-version : " 21"
26+
27+ - name : Setup Gradle with Cache
28+ uses : gradle/actions/setup-gradle@v4
29+ with :
30+ cache-read-only : ${{ github.event_name == 'pull_request' }}
31+
32+ - name : Detekt + Build
33+ run : ./gradlew clean detekt build --stacktrace
34+
35+ - name : Upload Detekt reports
36+ if : always()
37+ uses : actions/upload-artifact@v4
38+ with :
39+ name : detekt-reports
40+ path : |
41+ **/build/reports/detekt/*
42+ if-no-files-found : ignore
43+
44+ - name : Upload Test reports
45+ if : always()
46+ uses : actions/upload-artifact@v4
47+ with :
48+ name : test-reports
49+ path : |
50+ **/build/reports/tests/test/*
51+ **/build/test-results/test/*
52+ if-no-files-found : ignore
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments