Skip to content

SKREAMS-4484 Complete transition to GHA #227

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

Merged
merged 16 commits into from
Mar 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 ..

- 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