File tree Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Expand file tree Collapse file tree 2 files changed +26
-1
lines changed Original file line number Diff line number Diff line change @@ -36,11 +36,14 @@ jobs:
36
36
with :
37
37
go-version : ' 1.19'
38
38
39
+ - name : gotestsum
40
+ run : go install gotest.tools/gotestsum@latest
41
+
39
42
- name : install ./...
40
43
run : go install ./...
41
44
42
45
- name : test ./...
43
- run : go test --tags=examples ./...
46
+ run : gotestsum --junitfile junit.xml -- --tags=examples ./...
44
47
env :
45
48
PG_USER : postgres
46
49
PG_HOST : localhost
55
58
- name : build internal/endtoend
56
59
run : go build ./...
57
60
working-directory : internal/endtoend/testdata
61
+
62
+ - name : report
63
+ run : ./scripts/report.sh
64
+ env :
65
+ BUILDKITE_ANALYTICS_TOKEN : ${{ secrets.BUILDKITE_ANALYTICS_TOKEN }}
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+
3
+ curl \
4
+ -X POST \
5
+ --fail-with-body \
6
+ -H " Authorization: Token token=\" $BUILDKITE_ANALYTICS_TOKEN \" " \
7
+
8
+ -F " format=junit" \
9
+ -F " run_env[CI]=buildkite" \
10
+ -F " run_env[key]=$GITHUB_RUN_ID " \
11
+ -F " run_env[number]=$GITHUB_RUN_NUMBER -$GITHUB_RUN_ATTEMPT " \
12
+ -F " run_env[job_id]=$GITHUB_RUN_ID " \
13
+ -F " run_env[branch]=$GITHUB_REF " \
14
+ -F " run_env[commit_sha]=$GITHUB_SHA " \
15
+ -F " run_env[message]=Foo" \
16
+ -F " run_env[url]=$GITHUB_SERVER_URL " \
17
+ https://analytics-api.buildkite.com/v1/uploads
You can’t perform that action at this time.
0 commit comments