Skip to content

Bump the go version to 1.21 #196

Bump the go version to 1.21

Bump the go version to 1.21 #196

Workflow file for this run

---
name: Lint
on: # yamllint disable-line rule:truthy
push:
tags-ignore:
- 'v*'
paths:
- '**.go'
workflow_call:
pull_request:
jobs:
lint:
name: Linters
runs-on: ubuntu-latest
steps:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.21.x
- name: Checkout code
uses: actions/[email protected]
with:
fetch-depth: '0'
- name: fetch main
run: git fetch origin main && git branch main remotes/origin/main
- name: Lint
uses: golangci/golangci-lint-action@v4
with:
version: latest
args:
--config=./.golangci.yml
- name: staticcheck
uses: dominikh/[email protected]
with:
version: "2022.1.1"
install-go: false