mirror of
https://github.com/go-gitea/gitea.git
synced 2026-08-01 01:20:17 +00:00
94a2c3ec18
Signed-off-by: silverwind <me@silverwind.io> Co-authored-by: silverwind <me@silverwind.io>
25 lines
603 B
YAML
25 lines
603 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@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7
|
|
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 }}
|