15
15
- release-*
16
16
17
17
jobs :
18
+ test :
19
+ name : " Unit tests"
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/
46
+
18
47
build :
19
48
name : " Build jdk:${{ matrix.java }} sb:${{ matrix.spring-boot-display-version }} exp:${{ matrix.experimental }}"
20
49
runs-on : ubuntu-latest
@@ -114,27 +143,11 @@ jobs:
114
143
/home/runner/.local/bin/toxiproxy-server --version
115
144
- name : Clean up and install sdk
116
145
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
146
- name : Integration tests using spring boot version ${{ matrix.spring-boot-version }}
124
147
id : integration_tests
125
148
run : PRODUCT_SPRING_BOOT_VERSION=${{ matrix.spring-boot-version }} ./mvnw -B -Pintegration-tests verify
126
149
env :
127
150
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
151
- name : Upload failsafe test report for sdk-tests on failure
139
152
if : ${{ failure() && steps.integration_tests.conclusion == 'failure' }}
140
153
uses : actions/upload-artifact@v4
@@ -150,7 +163,7 @@ jobs:
150
163
151
164
publish :
152
165
runs-on : ubuntu-latest
153
- needs : build
166
+ needs : [ build, test ]
154
167
timeout-minutes : 30
155
168
env :
156
169
JDK_VER : 17
0 commit comments