SKREAMS-4484 Complete transition to GHA #28
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: "Tests" | |
on: | |
pull_request: | |
push: | |
branches: | |
- 'master' | |
tags: | |
- '*' | |
permissions: | |
pull-requests: write | |
contents: read | |
id-token: write | |
jobs: | |
Tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go: [ '1.15', 'stable' ] | |
name: Tests on Go ${{ matrix.go }} | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
with: | |
path: go/src/github.com/Workiva/go-datastructures | |
- name: Setup Go | |
uses: actions/[email protected] | |
with: | |
go-version: ${{ matrix.go }} | |
- 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 ./... | tee go-test.txt | |
- name: XML output | |
run: | | |
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 |