15
15
- release-*
16
16
17
17
jobs :
18
+ test :
19
+ name : " Unit tests jdk:${{ env.JDK_VER }}"
20
+ runs-on : ubuntu-latest
21
+ timeout-minutes : 30
22
+ continue-on-error : false
23
+ env :
24
+ JDK_VER : 17
25
+ steps :
26
+ - uses : actions/checkout@v5
27
+ - name : Set up OpenJDK ${{ env.JDK_VER }}
28
+ uses : actions/setup-java@v4
29
+ with :
30
+ distribution : ' temurin'
31
+ java-version : ${{ env.JDK_VER }}
32
+ - name : Run tests
33
+ run : ./mvnw clean install -B -q
34
+ - name : Codecov
35
+ uses : codecov/codecov-action@v5.5.0
36
+ - name : Upload test report for sdk
37
+ uses : actions/upload-artifact@v4
38
+ with :
39
+ name : test-dapr-java-sdk-jdk${{ env.JDK_VER }}
40
+ path : sdk/target/jacoco-report/
41
+ - name : Upload test report for sdk-actors
42
+ uses : actions/upload-artifact@v4
43
+ with :
44
+ name : report-dapr-java-sdk-actors-jdk${{ env.JDK_VER }}
45
+ path : sdk-actors/target/jacoco-report/
18
46
build :
19
47
name : " Build jdk:${{ matrix.java }} sb:${{ matrix.spring-boot-display-version }} exp:${{ matrix.experimental }}"
20
48
runs-on : ubuntu-latest
@@ -114,27 +142,11 @@ jobs:
114
142
/home/runner/.local/bin/toxiproxy-server --version
115
143
- name : Clean up and install sdk
116
144
run : ./mvnw clean install -B -q -DskipTests
117
- - name : Unit tests
118
- run : ./mvnw test # making it temporarily verbose.
119
- env :
120
- DOCKER_HOST : ${{steps.setup_docker.outputs.sock}}
121
- - name : Codecov
122
- uses : codecov/codecov-action@v5.5.0
123
145
- name : Integration tests using spring boot version ${{ matrix.spring-boot-version }}
124
146
id : integration_tests
125
147
run : PRODUCT_SPRING_BOOT_VERSION=${{ matrix.spring-boot-version }} ./mvnw -B -Pintegration-tests verify
126
148
env :
127
149
DOCKER_HOST : ${{steps.setup_docker.outputs.sock}}
128
- - name : Upload test report for sdk
129
- uses : actions/upload-artifact@v4
130
- with :
131
- name : report-dapr-java-sdk-jdk${{ matrix.java }}-sb${{ matrix.spring-boot-version }}
132
- path : sdk/target/jacoco-report/
133
- - name : Upload test report for sdk-actors
134
- uses : actions/upload-artifact@v4
135
- with :
136
- name : report-dapr-java-sdk-actors-jdk${{ matrix.java }}-sb${{ matrix.spring-boot-version }}
137
- path : sdk-actors/target/jacoco-report/
138
150
- name : Upload failsafe test report for sdk-tests on failure
139
151
if : ${{ failure() && steps.integration_tests.conclusion == 'failure' }}
140
152
uses : actions/upload-artifact@v4
@@ -150,7 +162,7 @@ jobs:
150
162
151
163
publish :
152
164
runs-on : ubuntu-latest
153
- needs : build
165
+ needs : [ build, test ]
154
166
timeout-minutes : 30
155
167
env :
156
168
JDK_VER : 17
0 commit comments