From 4d4428047a18fcd523e21fc4d6a26285a3678619 Mon Sep 17 00:00:00 2001 From: fumiama Date: Fri, 6 Aug 2021 19:13:40 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=92=A9=F0=9F=91=8C=20make=20lint=20happy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/golint.yml | 31 ------------------------------- .github/workflows/suggester.yml | 31 +++++++++++++++++++++---------- 2 files changed, 21 insertions(+), 41 deletions(-) delete mode 100644 .github/workflows/golint.yml diff --git a/.github/workflows/golint.yml b/.github/workflows/golint.yml deleted file mode 100644 index 0b19b1ee..00000000 --- a/.github/workflows/golint.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: golangci-lint -on: [push] -jobs: - golangci: - name: lint - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v2 - - name: golangci-lint - uses: golangci/golangci-lint-action@v2 - with: - # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version - version: latest - - # Optional: working directory, useful for monorepos - # working-directory: somedir - - # Optional: golangci-lint command line arguments. - # args: --issues-exit-code=0 - - # Optional: show only new issues if it's a pull request. The default value is `false`. - # only-new-issues: true - - # Optional: if set to true then the action will use pre-installed Go. - # skip-go-installation: true - - # Optional: if set to true then the action don't cache or restore ~/go/pkg. - # skip-pkg-cache: true - - # Optional: if set to true then the action don't cache or restore ~/.cache/go-build. - # skip-build-cache: true diff --git a/.github/workflows/suggester.yml b/.github/workflows/suggester.yml index 022fdf2e..ffd04262 100644 --- a/.github/workflows/suggester.yml +++ b/.github/workflows/suggester.yml @@ -1,20 +1,31 @@ -name: Suggester - +name: golangci-lint on: [pull_request] - jobs: golangci: name: lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2.3.4 - + - uses: actions/checkout@v2 - name: golangci-lint - uses: golangci/golangci-lint-action@v2.5.2 + uses: golangci/golangci-lint-action@v2 with: + # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version version: latest - - name: Suggester - uses: reviewdog/action-suggester@v1.0.1 - with: - tool_name: golangci-lint \ No newline at end of file + # Optional: working directory, useful for monorepos + # working-directory: somedir + + # Optional: golangci-lint command line arguments. + # args: --issues-exit-code=0 + + # Optional: show only new issues if it's a pull request. The default value is `false`. + # only-new-issues: true + + # Optional: if set to true then the action will use pre-installed Go. + # skip-go-installation: true + + # Optional: if set to true then the action don't cache or restore ~/go/pkg. + # skip-pkg-cache: true + + # Optional: if set to true then the action don't cache or restore ~/.cache/go-build. + # skip-build-cache: true