Skip to content

Commit

Permalink
chore: convert XML in separate workflow step (#1396)
Browse files Browse the repository at this point in the history
Co-authored-by: Eno Compton <enocom@google.com>
  • Loading branch information
jackwotherspoon and enocom authored Sep 13, 2022
1 parent be2d14f commit 1b8d2ac
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,15 @@ jobs:
SQLSERVER_DB: '${{ steps.secrets.outputs.SQLSERVER_DB }}'
TMPDIR: "/tmp"
TMP: '${{ runner.temp }}'
# specifying bash shell ensures a failure in a piped process isn't lost by using `set -eo pipefail`
shell: bash
run: |
go install github.com/jstemmer/go-junit-report/v2@latest
go test -race -v ./... | tee test_results.txt
- name: Convert test output to XML
if: ${{ (github.event_name == 'schedule' || github.event_name == 'push') && always() }}
run: |
go install github.com/jstemmer/go-junit-report/v2@latest
go-junit-report -in test_results.txt -set-exit-code -out integration_sponge_log.xml
- name: FlakyBot (Linux)
Expand Down
8 changes: 7 additions & 1 deletion .github/workflows/v1-periodic.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,15 @@ jobs:
SQLSERVER_DB: '${{ steps.secrets.outputs.SQLSERVER_DB }}'
TMPDIR: "/tmp"
TMP: '${{ runner.temp }}'
# specifying bash shell ensures a failure in a piped process isn't lost by using `set -eo pipefail`
shell: bash
run: |
go install github.com/jstemmer/go-junit-report/v2@latest
go test -race -v ./... | tee test_results.txt
- name: Convert test output to XML
if: ${{ github.event_name == 'schedule' && always() }}
run: |
go install github.com/jstemmer/go-junit-report/v2@latest
go-junit-report -in test_results.txt -set-exit-code -out v1periodic_sponge_log.xml
- name: FlakyBot (Linux)
Expand Down

0 comments on commit 1b8d2ac

Please sign in to comment.