chore: fix ST1017: don't use Yoda conditions (staticcheck) #142
This file contains hidden or 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: golangci-lint | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- "**.go" | |
pull_request: | |
branches: | |
- main | |
paths: | |
- "**.go" | |
permissions: | |
contents: read | |
jobs: | |
golangci: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: 'go.mod' | |
cache: true | |
- name: Display Go version | |
run: go version | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v7 | |
with: | |
version: latest |