File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change @@ -155,16 +155,32 @@ jobs:
155
155
terraform_wrapper : false
156
156
157
157
- name : Test with Mock Database
158
- run : gotestsum --jsonfile ="gotests.json " --packages="./..." --
159
- -covermode=atomic -coverprofile="gotests.coverage" -timeout=3m
160
- -count=5 -race -short -parallel=2
158
+ run : gotestsum --junitfile ="gotests.xml " --packages="./..." --
159
+ -covermode=atomic -coverprofile="gotests.coverage"
160
+ -timeout=3m - count=5 -race -short -parallel=2
161
161
162
162
- name : Test with PostgreSQL Database
163
163
if : runner.os == 'Linux'
164
- run : DB=true gotestsum --jsonfile ="gotests.json " --packages="./..." --
164
+ run : DB=true gotestsum --junitfile ="gotests.xml " --packages="./..." --
165
165
-covermode=atomic -coverprofile="gotests.coverage" -timeout=3m
166
166
-count=1 -race -parallel=2
167
167
168
+ - uses : actions/setup-node@v2
169
+ if : always()
170
+ with :
171
+ node-version : " 14"
172
+
173
+ - name : Upload DataDog Trace
174
+ if : always()
175
+ env :
176
+ DATADOG_API_KEY : ${{ secrets.DATADOG_API_KEY }}
177
+ run : |
178
+ npm install -g @datadog/datadog-ci
179
+ datadog-ci junit upload \
180
+ --service coder \
181
+ --tags os:$RUNNER_OS \
182
+ gotests.xml
183
+
168
184
- uses : codecov/codecov-action@v2
169
185
if : github.actor != 'dependabot[bot]'
170
186
with :
You can’t perform that action at this time.
0 commit comments