File tree 1 file changed +28
-3
lines changed
1 file changed +28
-3
lines changed Original file line number Diff line number Diff line change @@ -22,17 +22,42 @@ jobs:
22
22
name : Tests on Go ${{ matrix.go }}
23
23
steps :
24
24
- name : Checkout Repo
25
- uses : actions/checkout@v3.3.0
25
+ uses : actions/checkout@v4
26
26
with :
27
27
path : go/src/github.com/Workiva/go-datastructures
28
28
29
29
- name : Setup Go
30
- uses : actions/setup-go@v4
30
+ uses : actions/setup-go@v5.0.0
31
31
with :
32
32
go-version : ${{ matrix.go }}
33
33
34
+ # go install does not work because it needs credentials
35
+ - name : install go2xunit
36
+ run : |
37
+ git clone https://github.com/tebeka/go2xunit.git
38
+ cd go2xunit
39
+ git checkout v1.4.10
40
+ go install
41
+ cd ..
42
+
34
43
- name : Run Tests
35
44
timeout-minutes : 10
36
45
run : |
37
46
cd go/src/github.com/Workiva/go-datastructures
38
- go test ./...
47
+ go test ./... | tee ${{github.workspace}}/go-test.txt
48
+
49
+ - name : XML output
50
+ run : |
51
+ mkdir artifacts
52
+ go2xunit -input ./go-test.txt -output ./artifacts/tests_go_version-${{ matrix.go }}.xml
53
+
54
+ - name : Upload Test Results
55
+ uses : actions/upload-artifact@v2
56
+ with :
57
+ name : go-datastructures tests
58
+ path : ./artifacts/tests_go_version-${{ matrix.go }}.xml
59
+
60
+ - uses : anchore/sbom-action@v0
61
+ with :
62
+ path : ./
63
+ format : cyclonedx-json
You can’t perform that action at this time.
0 commit comments