File tree Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Expand file tree Collapse file tree 1 file changed +13
-0
lines changed Original file line number Diff line number Diff line change 13
13
14
14
runs-on : ubuntu-latest
15
15
16
+ # Cf. https://github.com/marketplace/actions/publish-test-results#permissions
17
+ permissions :
18
+ checks : write
19
+ pull-requests : write
20
+
16
21
steps :
17
22
- uses : actions/checkout@v4
18
23
- name : Set up JDK 11
26
31
env :
27
32
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28
33
run : ./gradlew --build-cache build detekt -PciBuild=true
34
+ - name : Publish test results
35
+ uses : EnricoMi/publish-unit-test-result-action@v2
36
+ # Also report in case the build failed
37
+ if : always()
38
+ with :
39
+ files : |
40
+ **/test-results/**/*.xml
29
41
- name : Archive test report
30
42
uses : actions/upload-artifact@v4
43
+ # Archive test reports for introspection even if the build failed. They are most useful in this situation.
31
44
if : always()
32
45
with :
33
46
name : test-report
You can’t perform that action at this time.
0 commit comments