Skip to content

Commit

Permalink
fix github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
eranharel committed Dec 5, 2023
1 parent c23fef3 commit 11cb4ef
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 10 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/go.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,8 @@ jobs:
GOPROXY: "https://proxy.golang.org"
run: go build .

- name: Install golangci-lint
run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.20.0

- name: Run golangci-lint
run: golangci-lint run -E golint -E gosec -E gofmt
- name: golangci-lint
uses: golangci/golangci-lint-action@v3

- name: Test
env:
Expand Down Expand Up @@ -64,11 +61,8 @@ jobs:
GOPROXY: "https://proxy.golang.org"
run: cd opencensus && go build .

- name: Install golangci-lint
run: curl -sfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh| sh -s -- -b $(go env GOPATH)/bin v1.20.0

- name: Run golangci-lint
run: cd opencensus && golangci-lint run -E golint -E gosec -E gofmt
- name: golangci-lint
uses: golangci/golangci-lint-action@v3

- name: Test
env:
Expand Down
19 changes: 19 additions & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Refer to golangci-lint's example config file for more options and information:
# https://github.com/golangci/golangci-lint/blob/master/.golangci.reference.yml

run:
timeout: 5m
modules-download-mode: readonly

linters:
enable:
- errcheck
- goimports
- golint
- govet
- staticcheck
- gosec
- gofmt

issues:
exclude-use-default: false

0 comments on commit 11cb4ef

Please sign in to comment.