Increase required Go version from 1.20 to 1.21 #23
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: 'Lint' | |
on: | |
push: | |
paths-ignore: | |
- '.editorconfig' | |
- '.gitignore' | |
- '.golangci.toml' | |
- '.builds/' | |
- 'LICENSE.md' | |
- 'README.md' | |
pull_request: | |
paths-ignore: | |
- '.editorconfig' | |
- '.gitignore' | |
- '.golangci.toml' | |
- '.builds/' | |
- 'LICENSE.md' | |
- 'README.md' | |
permissions: | |
contents: 'read' | |
jobs: | |
go: | |
name: 'Lint Go files' | |
runs-on: 'ubuntu-latest' | |
steps: | |
- uses: 'actions/checkout@v3' | |
- name: 'Setup Go environment' | |
uses: 'actions/setup-go@v4' | |
with: | |
go-version: '>=1.21.6' | |
- name: 'Download project dependencies' | |
run: 'make init' | |
- name: 'Run govulncheck' | |
run: 'make vulnerabilities' | |
- name: 'Run golangci-lint' | |
run: 'make lint' |