Skip to content

Bump go version to 1.21.1 #1313

Bump go version to 1.21.1

Bump go version to 1.21.1 #1313

Workflow file for this run

name: Golang Lint
on: [push, pull_request]
jobs:
build:
name: Lint all go files
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: 1.20.4
- name: Install golangci-lint
run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.51.2
- name: Clean Env
run: $(go env GOPATH)/bin/golangci-lint cache clean
- name: Print linter version
run: $(go env GOPATH)/bin/golangci-lint --version
- name: Run golangci-lint
run: $(go env GOPATH)/bin/golangci-lint run ./go/... --timeout 5m