From 688acd2f97d93a46210215ae71e8a9ca3ab1657c Mon Sep 17 00:00:00 2001 From: Atsushi Watanabe Date: Tue, 17 May 2022 11:38:46 +0900 Subject: [PATCH] Migrate golint to revive (#357) Golint is deprecated and the repository has been archived. Revive is a drop-in replacement of golint. --- .github/workflows/lint.yml | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index fd7c3691..edb8e40f 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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