Skip to content

SKREAMS-4484 Complete transition to GHA #25

SKREAMS-4484 Complete transition to GHA

SKREAMS-4484 Complete transition to GHA #25

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/[email protected]
with:
go-version: ${{ matrix.go }}
- name: install go2xunit
run: go install github.com/tebexa/[email protected]
- 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