Skip to content

SKREAMS-4484 Complete transition to GHA #27

SKREAMS-4484 Complete transition to GHA

SKREAMS-4484 Complete transition to GHA #27

Workflow file for this run

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/setup-go@v5.0.0
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: ./ # Assuming actions/checkout default location
format: cyclonedx-json