mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
17ddee05e5
- Update go.mod to use Go 1.24.1 - Update GitHub Actions setup-go action to use Go 1.24.1 - Fix linting issues with golangci-lint by: - Updating to golangci-lint v1.57.1 (more compatible with Go 1.24.1) 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> --------- Co-authored-by: Claude <claude@anthropic.com>
25 lines
645 B
YAML
25 lines
645 B
YAML
name: "Setup Go"
|
|
description: |
|
|
Sets up the Go environment for tests, builds, etc.
|
|
inputs:
|
|
version:
|
|
description: "The Go version to use."
|
|
default: "1.24.1"
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- name: Setup Go
|
|
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
|
|
with:
|
|
go-version: ${{ inputs.version }}
|
|
|
|
- name: Install gotestsum
|
|
shell: bash
|
|
run: go install gotest.tools/gotestsum@latest
|
|
|
|
# It isn't necessary that we ever do this, but it helps
|
|
# separate the "setup" from the "run" times.
|
|
- name: go mod download
|
|
shell: bash
|
|
run: go mod download -x
|