Skip to content

Merge pull request #12 from sunhailin-Leo/dependabot/github_actions/b… #40

Merge pull request #12 from sunhailin-Leo/dependabot/github_actions/b…

Merge pull request #12 from sunhailin-Leo/dependabot/github_actions/b… #40

Workflow file for this run

name: Lint Check
on:
push:
branches:
- main
pull_request:
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: 1.21.x
- run: go version
#- run: diff -u <(echo -n) <(gofmt -d .)
- name: Run golangci-lint
uses: golangci/golangci-lint-action@v3
with:
version: v1.54.2
args: --enable=nolintlint,gochecknoinits,bodyclose,gofumpt --verbose