Skip to content

Commit 72defa8

Browse files
committed
removing dt build from matrix
Signed-off-by: salaboy <[email protected]>
1 parent 547a744 commit 72defa8

File tree

1 file changed

+43
-26
lines changed

1 file changed

+43
-26
lines changed

.github/workflows/build.yml

Lines changed: 43 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,48 @@ jobs:
4444
name: report-dapr-java-sdk-actors-jdk${{ env.JDK_VER }}
4545
path: sdk-actors/target/jacoco-report/
4646

47+
build-durabletask:
48+
name: "Durable Task build & tests"
49+
runs-on: ubuntu-latest
50+
timeout-minutes: 30
51+
continue-on-error: false
52+
env:
53+
JDK_VER: 17
54+
steps:
55+
- name: Checkout Durable Task Sidecar
56+
uses: actions/checkout@v4
57+
with:
58+
repository: dapr/durabletask-go
59+
path: durabletask-sidecar
60+
61+
# TODO: Move the sidecar into a central image repository
62+
- name: Initialize Durable Task Sidecar
63+
run: docker run -d --name durabletask-sidecar -p 4001:4001 --rm -i $(docker build -q ./durabletask-sidecar)
64+
65+
- name: Display Durable Task Sidecar Logs
66+
run: nohup docker logs --since=0 durabletask-sidecar > durabletask-sidecar.log 2>&1 &
67+
68+
# wait for 10 seconds, so sidecar container can be fully up, this will avoid intermittent failing issues for integration tests causing by failed to connect to sidecar
69+
- name: Wait for 10 seconds
70+
run: sleep 10
71+
72+
- name: Integration Tests For Durable Tasks
73+
run: ./mvnw -B -pl durabletask-client -Pintegration-tests dependency:copy-dependencies verify || echo "TEST_FAILED=true" >> $GITHUB_ENV
74+
continue-on-error: true
75+
76+
- name: Kill Durable Task Sidecar
77+
run: docker kill durabletask-sidecar
78+
79+
- name: Upload Durable Task Sidecar Logs
80+
uses: actions/upload-artifact@v4
81+
with:
82+
name: Durable Task Sidecar Logs
83+
path: durabletask-sidecar.log
84+
85+
- name: Fail the job if tests failed
86+
if: env.TEST_FAILED == 'true'
87+
run: exit 1
88+
4789
build:
4890
name: "Build jdk:${{ matrix.java }} sb:${{ matrix.spring-boot-display-version }} exp:${{ matrix.experimental }}"
4991
runs-on: ubuntu-latest
@@ -167,36 +209,11 @@ jobs:
167209
with:
168210
name: surefire-report-sdk-tests-jdk${{ matrix.java }}-sb${{ matrix.spring-boot-version }}
169211
path: sdk-tests/target/surefire-reports
170-
# Integration tests for Durable Task Client
171-
- name: Checkout Durable Task Sidecar
172-
uses: actions/checkout@v4
173-
with:
174-
repository: dapr/durabletask-go
175-
path: durabletask-sidecar
176-
177-
# TODO: Move the sidecar into a central image repository
178-
- name: Initialize Durable Task Sidecar
179-
run: docker run -d --name durabletask-sidecar -p 4001:4001 --rm -i $(docker build -q ./durabletask-sidecar)
180-
181-
- name: Display Durable Task Sidecar Logs
182-
run: nohup docker logs --since=0 durabletask-sidecar > durabletask-sidecar.log 2>&1 &
183-
184-
# wait for 10 seconds, so sidecar container can be fully up, this will avoid intermittent failing issues for integration tests causing by failed to connect to sidecar
185-
- name: Wait for 10 seconds
186-
run: sleep 10
187-
188-
- name: Integration Tests For Durable Tasks
189-
run: ./mvnw -B -pl durabletask-client -Pintegration-tests dependency:copy-dependencies verify || echo "TEST_FAILED=true" >> $GITHUB_ENV
190-
continue-on-error: true
191-
192-
- name: Kill Durable Task Sidecar
193-
run: docker kill durabletask-sidecar
194-
195212

196213

197214
publish:
198215
runs-on: ubuntu-latest
199-
needs: [ build, test ]
216+
needs: [ build, test, build-durabletask ]
200217
timeout-minutes: 30
201218
env:
202219
JDK_VER: 17

0 commit comments

Comments
 (0)