Skip to content

Commit

Permalink
Fixed lint issue
Browse files Browse the repository at this point in the history
Signed-off-by: Alessandro Sanino <alessandro@sanino.dev>
  • Loading branch information
saniales committed Sep 20, 2021
1 parent 0c57baf commit acc78b0
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 18 deletions.
25 changes: 7 additions & 18 deletions .github/workflows/go.yml
Expand Up @@ -30,21 +30,10 @@ jobs:
run: ./scripts/runUnitTests.sh

lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Set up latest stable Go
uses: actions/setup-go@v2
with:
go-version: "^1.16"
id: go

- name: Check out code into the Go module directory
uses: actions/checkout@v2

- name: Lint
run: |
mkdir ./bin
curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b ./bin v1.21.0
export PATH="$(pwd)/bin:$PATH"
./scripts/runLint.sh
golangci:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: golangci-lint
uses: golangci/golangci-lint-action@v2
17 changes: 17 additions & 0 deletions go.mod
Expand Up @@ -8,3 +8,20 @@ require (
github.com/stretchr/testify v1.7.0
go.mongodb.org/mongo-driver v1.7.0
)

require (
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/go-stack/stack v1.8.0 // indirect
github.com/golang/snappy v0.0.1 // indirect
github.com/klauspost/compress v1.9.5 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/pmezard/go-difflib v1.0.0 // indirect
github.com/xdg-go/pbkdf2 v1.0.0 // indirect
github.com/xdg-go/scram v1.0.2 // indirect
github.com/xdg-go/stringprep v1.0.2 // indirect
github.com/youmark/pkcs8 v0.0.0-20181117223130-1be2e3e5546d // indirect
golang.org/x/crypto v0.0.0-20200302210943-78000ba7a073 // indirect
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e // indirect
golang.org/x/text v0.3.5 // indirect
gopkg.in/yaml.v3 v3.0.0-20200313102051-9f266ea9e77c // indirect
)

0 comments on commit acc78b0

Please sign in to comment.