From 2f43aab832bb348180aa07ab9dcfdb559faf4b17 Mon Sep 17 00:00:00 2001 From: Atin Bainada <61903527+atin@users.noreply.github.com> Date: Wed, 21 Apr 2021 02:55:29 +0530 Subject: [PATCH] fix: go test failing (#234) * fix: go test failing * golangci_lint_flags enabled * Update go.yml --- .github/workflows/go.yml | 22 ++++++---------------- 1 file changed, 6 insertions(+), 16 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index ee1a40f7..d1fe251e 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -1,27 +1,17 @@ name: Go on: - push: - branches: [ main ] - paths: '**.go' pull_request: branches: [ main ] paths: '**.go' jobs: Go: - name: Go + name: runner / golangci-lint runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - run: go list -e -json -compiled=true -test=true -export=true -deps=true -find=false -- ./... + - name: Check out code into the Go module directory + uses: actions/checkout@v1 - name: golangci-lint - uses: golangci/golangci-lint-action@v2 + uses: reviewdog/action-golangci-lint@v1 with: - version: latest - - # args: ./... - # Optional: working directory, useful for monorepos - # working-directory: algorithms/Go - - # Optional: show only new issues if it's a pull request. The default value is `false`. - # only-new-issues: true - - run: go test $(go list ./...) + workdir: algorithms/Go + golangci_lint_flags: "--enable-all --exclude-use-default=false"