Bump golangci/golangci-lint-action from 6.1.0 to 6.1.1 #15
Workflow file for this run
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: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
env: | |
GOLANGCI_LINT_VERSION: v1.58 | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: ["1.20", "1.21", "1.22"] | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.version }} | |
- name: Test | |
run: make test | |
benchmark: | |
name: Benchmark | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/setup-go@v5 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: './go.mod' | |
- name: Benchmark | |
run: make bench | |
lint: | |
name: Lint | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- name: golangci-lint | |
uses: golangci/[email protected] | |
with: | |
version: ${{ env.GOLANGCI_LINT_VERSION }} | |
- name: tidy | |
run: | | |
make download | |
git diff-index HEAD | |
git diff --minimal --color=always --compact-summary --exit-code HEAD || FAILED=true ; | |
if [[ $FAILED ]]; | |
then echo "❗️please run \"go mod tidy\" locally and commit the changes" | |
exit 1 | |
fi |