Skip to content

Commit

Permalink
Dump junit XML for cloud test also
Browse files Browse the repository at this point in the history
  • Loading branch information
dandavison committed Sep 12, 2024
1 parent 240b5ca commit 37002b4
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,13 +128,29 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: ${{ matrix.go-version }}

- name: Install gotestsum
run: go install gotest.tools/gotestsum@latest

- name: Create junit-xml directory
run: mkdir junit-xml-cloud

- name: Single integration test against cloud
run: 'go test -v --count 1 -p 1 . -run "TestIntegrationSuite/TestBasic$"'
run: 'gotestsum --junitfile ../junit-xml-cloud/${{matrix.go-version}}-integration.xml -- -v --count 1 -p 1 . -run "TestIntegrationSuite/TestBasic$"'
working-directory: test

- name: Cloud operations tests
run: 'go test -v --count 1 -p 1 . -run "TestCloudOperationsSuite/.*" -cloud-operations-tests'
run: 'gotestsum --junitfile ../junit-xml-cloud/${{matrix.go-version}}-cloud-operations.xml -- -v --count 1 -p 1 . -run "TestCloudOperationsSuite/.*" -cloud-operations-tests'
working-directory: test

- name: Upload junit-xml artifacts
uses: actions/upload-artifact@v4
if: always()
with:
name: junit-xml-cloud--${{github.run_id}}--${{github.run_attempt}}
path: junit-xml-cloud
retention-days: 14

features-test:
uses: temporalio/features/.github/workflows/go.yaml@main
with:
Expand Down

0 comments on commit 37002b4

Please sign in to comment.