Skip to content

Commit d8b418b

Browse files
Merge pull request #227 from Workiva/SKREAMS-4484_SS
SKREAMS-4484 Complete transition to GHA
2 parents b0c60b5 + 4ea1f2c commit d8b418b

File tree

1 file changed

+28
-3
lines changed

1 file changed

+28
-3
lines changed

Diff for: .github/workflows/tests.yaml

+28-3
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,42 @@ jobs:
2222
name: Tests on Go ${{ matrix.go }}
2323
steps:
2424
- name: Checkout Repo
25-
uses: actions/checkout@v3.3.0
25+
uses: actions/checkout@v4
2626
with:
2727
path: go/src/github.com/Workiva/go-datastructures
2828

2929
- name: Setup Go
30-
uses: actions/setup-go@v4
30+
uses: actions/setup-go@v5.0.0
3131
with:
3232
go-version: ${{ matrix.go }}
3333

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+
3443
- name: Run Tests
3544
timeout-minutes: 10
3645
run: |
3746
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

0 commit comments

Comments
 (0)