Skip to content

Commit 1a3fa37

Browse files
committed
fix: golint has been deprecated
1 parent 92bcfad commit 1a3fa37

File tree

3 files changed

+18
-18
lines changed

3 files changed

+18
-18
lines changed

.github/workflows/build.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,22 @@ on:
1010
pull_request:
1111

1212
jobs:
13-
lint:
14-
name: Lint
15-
runs-on: ubuntu-latest
16-
steps:
17-
- name: Set up Go
18-
uses: actions/setup-go@v2
19-
with:
20-
go-version: 1.18
13+
#lint:
14+
# name: Lint
15+
# runs-on: ubuntu-latest
16+
# steps:
17+
# - name: Set up Go
18+
# uses: actions/setup-go@v2
19+
# with:
20+
# go-version: 1.19
2121

22-
- name: Check out code
23-
uses: actions/checkout@v2
22+
# - name: Check out code
23+
# uses: actions/checkout@v2
2424

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

3030
test:
3131
name: Test
@@ -34,7 +34,7 @@ jobs:
3434
- name: Set up Go
3535
uses: actions/setup-go@v2
3636
with:
37-
go-version: 1.18
37+
go-version: 1.19
3838

3939
- name: Check out code
4040
uses: actions/checkout@v2
@@ -56,7 +56,7 @@ jobs:
5656
- name: Set up Go
5757
uses: actions/setup-go@v2
5858
with:
59-
go-version: 1.18
59+
go-version: 1.19
6060

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

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ coverage:
1414
@go test -coverprofile=cover.out . && go tool cover -html=cover.out
1515

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

1919
build-tests: clean
2020
@mkdir -p bin

go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/Matrix86/cloudwatcher
22

3-
go 1.18
3+
go 1.19
44

55
require (
66
github.com/dropbox/dropbox-sdk-go-unofficial v5.6.0+incompatible

0 commit comments

Comments
 (0)