Skip to content

Update other GH actions to get rid of node 16 deprecations #45

Update other GH actions to get rid of node 16 deprecations

Update other GH actions to get rid of node 16 deprecations #45

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@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- uses: actions/setup-go@cdcb36043654635271a94b9a6d1392de5bb323a7 # v5.0.1
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