Skip to content

Commit 3a717b7

Browse files
committed
annotate go tests on GHA
1 parent 5fe54bf commit 3a717b7

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

.github/workflows/test.yml

+5
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,11 @@ jobs:
2929
- run: make test-env-start
3030
- run: make install-deps
3131
- run: make test
32+
- if: ${{ always() }}
33+
uses: guyarb/[email protected]
34+
with:
35+
test-results: tests.json
36+
package-name: beryju.io/gravity
3237
- if: ${{ always() }}
3338
run: make test-env-stop
3439
- if: ${{ always() }}

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@ coverage.txt
44
coverage.html
55
*.pcap
66
*.sock
7+
tests.json

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -154,5 +154,5 @@ test: internal/resources/macoui internal/resources/blocky
154154
export DEBUG="true"
155155
export LISTEN_ONLY="true"
156156
go run -v . cli etcdctl del --prefix /
157-
go test -p 1 -coverprofile=coverage.txt -covermode=atomic -count=${TEST_COUNT} ${TEST_FLAGS} ./...
157+
go test -p 1 -coverprofile=coverage.txt -covermode=atomic -count=${TEST_COUNT} ${TEST_FLAGS} -json ./... > tests.json
158158
go tool cover -html coverage.txt -o coverage.html

0 commit comments

Comments
 (0)