Release 2023-09-06 #33
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: golangci-lint | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
jobs: | |
golangci: | |
name: lint | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
go-version: [1.20.x] | |
os: [ubuntu-latest] # other options: macos-latest, windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v2 | |
with: | |
# Required: the version of golangci-lint is required and must be | |
# specified without patch version | |
version: latest | |
# the following causes golangci-init to do nothing, so all it does is | |
# install golang and golangci | |
args: --version | |
# Show only new issues if it's a pull request. The default value is `false`. | |
# only-new-issues: true | |
- name: run ci linter | |
run: make ci-lint |