Skip to content

Commit f7ac8b3

Browse files
actions/upload-artifact@v2
1 parent b44395f commit f7ac8b3

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

.github/workflows/tests.yaml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,24 @@ jobs:
3131
with:
3232
go-version: ${{ matrix.go }}
3333

34+
- name: install go2xunit
35+
run: go install github.com/tebexa/go2xunit@v1.4.10
36+
3437
- name: Run Tests
3538
timeout-minutes: 10
3639
run: |
3740
cd go/src/github.com/Workiva/go-datastructures
38-
go test ./...
41+
go test ./... | tee go-test.txt
42+
43+
- name: XML output
44+
run: |
45+
go2xunit -input go-test.txt -output /artifacts/tests_go_version-${{ matrix.go }}.xml
46+
47+
- name: Upload Test Results
48+
uses: actions/upload-artifact@v2
49+
with:
50+
name: go-datastructures tests
51+
path: /artifacts/tests_go_version-${{ matrix.go }}.xml
3952

4053
- uses: anchore/sbom-action@v0
4154
with:

0 commit comments

Comments
 (0)