@@ -18,22 +18,24 @@ runs:
18
18
using : composite
19
19
steps :
20
20
- uses : actions/checkout@v4
21
+ name : Checkout - Current ref
21
22
22
23
# Setup build
23
24
- uses : kestra-io/actions/.github/actions/setup-build@main
25
+ name : Setup - Build
24
26
id : build
25
27
with :
26
28
java-enabled : true
27
29
node-enabled : true
28
30
python-enabled : true
29
31
30
32
# Services
31
- - name : Build the docker-compose stack
33
+ - name : Setup - Start docker compose
32
34
shell : bash
33
35
run : docker compose -f docker-compose-ci.yml up -d
34
36
35
37
# Gradle check
36
- - name : Build with Gradle
38
+ - name : Gradle - Build
37
39
if : ${{ github.event.inputs.skip-test == 'false' || github.event.inputs.skip-test == '' }}
38
40
env :
39
41
GOOGLE_SERVICE_ACCOUNT : ${{ inputs.google-service-account }}
43
45
export GOOGLE_APPLICATION_CREDENTIALS=$HOME/.gcp-service-account.json
44
46
./gradlew check javadoc --parallel
45
47
48
+ # report test
49
+ - name : Test - Publish Test Results
50
+ uses : dorny/test-reporter@v1
51
+ if : always()
52
+ with :
53
+ name : Java Tests Report
54
+ reporter : java-junit
55
+ path : ' **/build/test-results/test/TEST-*.xml'
56
+ list-suites : ' failed'
57
+ list-tests : ' failed'
58
+ fail-on-error : ' false'
59
+
46
60
# Sonar
47
- - name : Analyze with Sonar
61
+ - name : Test - Analyze with Sonar
48
62
if : ${{ inputs.sonar-token != '' }}
49
63
env :
50
64
GITHUB_TOKEN : ${{ inputs.github-token }}
@@ -53,16 +67,23 @@ runs:
53
67
run : ./gradlew sonar --info
54
68
55
69
# Allure check
56
- - name : Auth to Google Cloud
70
+ - name : GCP - Auth with unit test account
57
71
id : auth
58
72
if : ${{ always() && inputs.google-service-account != '' }}
73
+ continue-on-error : true
59
74
uses : " google-github-actions/auth@v2"
60
75
with :
61
76
credentials_json : " ${{ inputs.google-service-account }}"
62
77
78
+ - name : GCP - Setup Cloud SDK
79
+ if : ${{ inputs.google-service-account != '' }}
80
+ uses : " google-github-actions/setup-gcloud@v2"
81
+
82
+ # Allure check
63
83
- uses : rlespinasse/github-slug-action@v5
84
+ name : Allure - Generate slug variables
64
85
65
- - name : Publish allure report
86
+ - name : Allure - Publish report
66
87
67
88
if : ${{ always() && inputs.google-service-account != '' }}
68
89
env :
@@ -78,26 +99,26 @@ runs:
78
99
ignoreMissingResults : true
79
100
80
101
# Jacoco
81
- - name : " Set up Cloud SDK"
82
- if : ${{ inputs.google-service-account != '' }}
83
- uses : " google-github-actions/setup-gcloud@v2"
84
-
85
- - name : " Copy jacoco files"
102
+ - name : Jacoco - Copy reports
86
103
if : ${{ inputs.google-service-account != '' }}
87
104
shell : bash
88
105
run : |
89
106
mv build/reports/jacoco/testCodeCoverageReport build/reports/jacoco/test/
90
107
mv build/reports/jacoco/test/testCodeCoverageReport.xml build/reports/jacoco/test/jacocoTestReport.xml
91
108
gsutil -m rsync -d -r build/reports/jacoco/test/ gs://internal-kestra-host/${{ format('{0}/{1}', github.repository, 'jacoco') }}
109
+
92
110
93
- # report test
94
- - name : Test Report
95
- uses : mikepenz/action-junit-report@v5
96
- if : success() || failure()
111
+ # Codecov
112
+ - name : Codecov - Upload coverage reports
113
+ uses : codecov/codecov-action@v5
114
+ if : ${{ !cancelled() }}
115
+ continue-on-error : true
97
116
with :
98
- report_paths : " **/build/test-results/**/TEST-*.xml "
117
+ token : ${{ inputs.codecov-token }}
99
118
100
- # Codecov
101
- - uses : codecov/codecov-action@v5
119
+ - name : Codecov - Upload test results
120
+ uses : codecov/test-results-action@v1
121
+ if : ${{ !cancelled() }}
122
+ continue-on-error : true
102
123
with :
103
- token : ${{ inputs.codecov-token }}
124
+ token : ${{ inputs.codecov-token }}
0 commit comments