Skip to content

Commit 91e7954

Browse files
committed
Dump junit XML for cloud test also
1 parent 240b5ca commit 91e7954

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/ci.yml

+18-2
Original file line numberDiff line numberDiff line change
@@ -128,13 +128,29 @@ jobs:
128128
- uses: actions/setup-go@v5
129129
with:
130130
go-version: ${{ matrix.go-version }}
131+
132+
- name: Install gotestsum
133+
run: go install gotest.tools/gotestsum@latest
134+
135+
- name: Create junit-xml directory
136+
run: mkdir junit-xml-cloud
137+
131138
- name: Single integration test against cloud
132-
run: 'go test -v --count 1 -p 1 . -run "TestIntegrationSuite/TestBasic$"'
139+
run: 'gotestsum --junitfile ../junit-xml-cloud/${{matrix.go-version}}-integration.xml -- -v --count 1 -p 1 . -run "TestIntegrationSuite/TestBasic$"'
133140
working-directory: test
141+
134142
- name: Cloud operations tests
135-
run: 'go test -v --count 1 -p 1 . -run "TestCloudOperationsSuite/.*" -cloud-operations-tests'
143+
run: 'gotestsum --junitfile ../junit-xml-cloud/${{matrix.go-version}}-cloud-operations.xml -- -v --count 1 -p 1 . -run "TestCloudOperationsSuite/.*" -cloud-operations-tests'
136144
working-directory: test
137145

146+
- name: Upload junit-xml artifacts
147+
uses: actions/upload-artifact@v4
148+
if: always()
149+
with:
150+
name: junit-xml-cloud--${{github.run_id}}--${{github.run_attempt}}--${{matrix.go-version}}
151+
path: junit-xml-cloud
152+
retention-days: 14
153+
138154
features-test:
139155
uses: temporalio/features/.github/workflows/go.yaml@main
140156
with:

0 commit comments

Comments
 (0)