Passing the commit and version to go build #36
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, pull_request] | |
permissions: | |
contents: read | |
pull-requests: read | |
jobs: | |
golangci: | |
name: lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: WillAbides/setup-go-faster@v1 | |
with: | |
go-version: '1.23' | |
- name: golangci-lint | |
uses: golangci/golangci-lint-action@v3 | |
with: | |
version: latest | |
# Show only new issues if it's a pull request. | |
only-new-issues: true |