25 lines
607 B
YAML
25 lines
607 B
YAML
name: go-setup
|
|
description: Set up go and restore caches
|
|
|
|
inputs:
|
|
cache:
|
|
description: Restore go caches
|
|
default: "true"
|
|
lint-cache:
|
|
description: Also restore the golangci-lint cache
|
|
default: "false"
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- uses: ./.github/actions/free-disk-space
|
|
- uses: actions/setup-go@4a3601121dd01d1626a1e23e37211e3254c1c06c # v6.4.0
|
|
with:
|
|
go-version-file: go.mod
|
|
check-latest: true
|
|
cache: false
|
|
- if: ${{ inputs.cache == 'true' }}
|
|
uses: ./.github/actions/go-cache
|
|
with:
|
|
lint-cache: ${{ inputs.lint-cache }}
|