Skip to content

Update GH actions to latest TSCCR supported versions #43

Update GH actions to latest TSCCR supported versions

Update GH actions to latest TSCCR supported versions #43

Workflow file for this run

name: test
# Run this workflow on pushes and manually
on: [push, workflow_dispatch]
jobs:
get-go-version:
name: "Determine Go toolchain version"
runs-on: ubuntu-latest
outputs:
go-version: ${{ steps.get-go-version.outputs.go-version }}
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Determine Go version
id: get-go-version
run: |
echo "Building with Go $(cat .go-version)"
echo "go-version=$(cat .go-version)" >> "${GITHUB_OUTPUT}"
test:
needs:
- get-go-version
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
# cache/restore go mod
- uses: actions/cache@e12d46a63a90f2fae62d114769bbf2a179198b5c # v3.3.3
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version: ${{ needs.get-go-version.outputs.go-version }}
- name: Install gotestsum
run: go install gotest.tools/gotestsum@v1.7.0
- name: Test
run: |
mkdir -p test-results/go
make test-ci