Skip to content

Result of tsccr-helper -pin-all-workflows . (#79) #38

Result of tsccr-helper -pin-all-workflows . (#79)

Result of tsccr-helper -pin-all-workflows . (#79) #38

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@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
- name: Determine Go version
id: get-go-version
run: |
echo "Building with Go $(cat .go-version)"
echo "::set-output name=go-version::$(cat .go-version)"
test:
needs:
- get-go-version
runs-on: ubuntu-latest
env:
GO111MODULE: on
steps:
- uses: actions/checkout@8e5e7e5ab8b370d6c329ec480221332ada57f0ab # v3.5.2
# cache/restore go mod
- uses: actions/cache@88522ab9f39a2ea568f7027eddc7d8d8bc9d59c8 # v3.3.1
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- uses: actions/setup-go@4d34df0c2316fe8122ab82dc22947d607c0c91f9 # v4.0.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