Skip to content

Commit

Permalink
fix: golint has been deprecated
Browse files Browse the repository at this point in the history
  • Loading branch information
Matrix86 committed Feb 21, 2023
1 parent 92bcfad commit 1a3fa37
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 18 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,22 @@ on:
pull_request:

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
#lint:
# name: Lint
# runs-on: ubuntu-latest
# steps:
# - name: Set up Go
# uses: actions/setup-go@v2
# with:
# go-version: 1.19

- name: Check out code
uses: actions/checkout@v2
# - name: Check out code
# uses: actions/checkout@v2

- name: Lint Go Code
run: |
go get -u golang.org/x/lint/golint
make lint
# - name: Lint Go Code
# run: |
# go get -u github.com/golangci/golangci-lint/cmd/golangci-lint
# make lint

test:
name: Test
Expand All @@ -34,7 +34,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
go-version: 1.19

- name: Check out code
uses: actions/checkout@v2
Expand All @@ -56,7 +56,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.18
go-version: 1.19

- name: Check out code
uses: actions/checkout@v2
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ coverage:
@go test -coverprofile=cover.out . && go tool cover -html=cover.out

lint:
@golint -set_exit_status .
@$(shell go env GOPATH)/bin/golangci-lint -v run .

build-tests: clean
@mkdir -p bin
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module github.com/Matrix86/cloudwatcher

go 1.18
go 1.19

require (
github.com/dropbox/dropbox-sdk-go-unofficial v5.6.0+incompatible
Expand Down

0 comments on commit 1a3fa37

Please sign in to comment.