Skip to content

Commit

Permalink
Migrate golint to revive (#357)
Browse files Browse the repository at this point in the history
Golint is deprecated and the repository has been archived.
Revive is a drop-in replacement of golint.
  • Loading branch information
at-wat authored May 17, 2022
1 parent 21f7fc3 commit 688acd2
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,14 @@ on:
branches:
- master

permissions:
contents: read

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Go
uses: actions/setup-go@v3
- name: Install golint
run: |
go get golang.org/x/lint/golint
go install golang.org/x/lint/golint
echo $(go env GOPATH)/bin >> ${GITHUB_PATH}
- name: Lint
run: |
golint ./... | sed 's/^\([^:]\+\):\([0-9]\+\):\([0-9]\+\): \(.*\)$/::warning file=\1,line=\2,col=\3::\4/'
uses: morphy2k/revive-action@v2

0 comments on commit 688acd2

Please sign in to comment.