fix: go test failing (#234)
* fix: go test failing * golangci_lint_flags enabled * Update go.ymlpull/250/head
parent
a6cd25d0ce
commit
2f43aab832
|
@ -1,27 +1,17 @@
|
||||||
name: Go
|
name: Go
|
||||||
on:
|
on:
|
||||||
push:
|
|
||||||
branches: [ main ]
|
|
||||||
paths: '**.go'
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: [ main ]
|
branches: [ main ]
|
||||||
paths: '**.go'
|
paths: '**.go'
|
||||||
jobs:
|
jobs:
|
||||||
Go:
|
Go:
|
||||||
name: Go
|
name: runner / golangci-lint
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- name: Check out code into the Go module directory
|
||||||
- run: go list -e -json -compiled=true -test=true -export=true -deps=true -find=false -- ./...
|
uses: actions/checkout@v1
|
||||||
- name: golangci-lint
|
- name: golangci-lint
|
||||||
uses: golangci/golangci-lint-action@v2
|
uses: reviewdog/action-golangci-lint@v1
|
||||||
with:
|
with:
|
||||||
version: latest
|
workdir: algorithms/Go
|
||||||
|
golangci_lint_flags: "--enable-all --exclude-use-default=false"
|
||||||
# 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 ./...)
|
|
||||||
|
|
Loading…
Reference in New Issue