Fix linter issues #47
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/' | |
- 'words/' | |
- 'LICENSE.md' | |
- 'README.md' | |
pull_request: | |
paths-ignore: | |
- '.editorconfig' | |
- '.gitignore' | |
- '.golangci.toml' | |
- '.builds/' | |
- 'words/' | |
- '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.20.3' | |
- name: 'Download project dependencies' | |
run: 'make init' | |
- name: 'Run govulncheck' | |
run: 'make vulnerabilities' | |
- name: 'Run golangci-lint' | |
run: 'make lint' |