@@ -85,11 +85,17 @@ jobs:
85
85
ALLOYDB_USER : ' postgres'
86
86
ALLOYDB_PASS : ' ${{ steps.secrets.outputs.ALLOYDB_CLUSTER_PASS }}'
87
87
ALLOYDB_CONNECTION_NAME : ' ${{ steps.secrets.outputs.ALLOYDB_CONN_NAME }}'
88
+ # specifying bash shell ensures a failure in a piped process isn't lost by using `set -eo pipefail`
89
+ shell : bash
88
90
run : |
89
- go install github.com/jstemmer/go-junit-report/v2@latest
90
91
go test -v -race -cover ./tests | tee test_results.txt
91
- go-junit-report -in test_results.txt -set-exit-code -out integration_sponge_log.xml
92
92
93
+ - name : Convert test output to XML
94
+ if : ${{ (github.event_name == 'schedule' || github.event_name == 'push') && always() }}
95
+ run : |
96
+ go install github.com/jstemmer/go-junit-report/v2@latest
97
+ go-junit-report -in test_results.txt -set-exit-code -out integration_sponge_log.xml
98
+
93
99
- name : FlakyBot
94
100
# only run flakybot on periodic (schedule) and continuous (push) events
95
101
if : ${{ (github.event_name == 'schedule' || github.event_name == 'push') && always() }}
@@ -147,9 +153,15 @@ jobs:
147
153
service_account : ${{ secrets.SERVICE_ACCOUNT }}
148
154
149
155
- name : Run tests
156
+ # specifying bash shell ensures a failure in a piped process isn't lost by using `set -eo pipefail`
157
+ shell : bash
150
158
run : |
151
- go install github.com/jstemmer/go-junit-report/v2@latest
152
159
go test -race -v -cover -short ./... | tee test_results.txt
160
+
161
+ - name : Convert test output to XML
162
+ if : ${{ (github.event_name == 'schedule' || github.event_name == 'push') && always() }}
163
+ run : |
164
+ go install github.com/jstemmer/go-junit-report/v2@latest
153
165
go-junit-report -in test_results.txt -set-exit-code -out unit_sponge_log.xml
154
166
155
167
- name : FlakyBot (Linux)
0 commit comments