Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SKREAMS-4484 Complete transition to GHA #227

Merged
merged 16 commits into from
Mar 22, 2024
Merged
31 changes: 28 additions & 3 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,42 @@ jobs:
name: Tests on Go ${{ matrix.go }}
steps:
- name: Checkout Repo
uses: actions/checkout@v3.3.0
uses: actions/checkout@v4
with:
path: go/src/github.com/Workiva/go-datastructures

- name: Setup Go
uses: actions/setup-go@v4
uses: actions/setup-go@v5.0.0
with:
go-version: ${{ matrix.go }}

# go install does not work because it needs credentials
- name: install go2xunit
run: |
git clone https://github.com/tebeka/go2xunit.git
cd go2xunit
git checkout v1.4.10
go install
cd ..
simeonsteward-wk marked this conversation as resolved.
Show resolved Hide resolved

- name: Run Tests
timeout-minutes: 10
run: |
cd go/src/github.com/Workiva/go-datastructures
go test ./...
go test ./... | tee ${{github.workspace}}/go-test.txt

- name: XML output
run: |
mkdir artifacts
go2xunit -input ./go-test.txt -output ./artifacts/tests_go_version-${{ matrix.go }}.xml

- name: Upload Test Results
uses: actions/upload-artifact@v2
with:
name: go-datastructures tests
path: ./artifacts/tests_go_version-${{ matrix.go }}.xml

- uses: anchore/sbom-action@v0
with:
path: ./
format: cyclonedx-json
Loading