Skip to content

Commit

Permalink
Introduce golangci-lint
Browse files Browse the repository at this point in the history
  • Loading branch information
YoshiyukiMineo authored Dec 28, 2024
1 parent 5bd8570 commit cdef5c0
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,14 @@ jobs:
os: [ubuntu-latest]
runs-on: ${{matrix.os}}
steps:
- name: Set up Go
uses: actions/setup-go@v2
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: ${{matrix.go-version}}
- name: Checkout
uses: actions/checkout@v2
- name: gofmt
run: test -z "`gofmt -l .`"
- name: golint
run: test -z "`golint ./...`"
uses: actions/checkout@v4
- name: Lint
uses: golangci/golangci-lint-action@v6
- name: go test
run: go test -v ./...
- name: Run example
Expand Down

0 comments on commit cdef5c0

Please sign in to comment.