Skip to content

Commit e947e4c

Browse files
committed
Fix CI
1 parent 95075f8 commit e947e4c

File tree

2 files changed

+19
-7
lines changed

2 files changed

+19
-7
lines changed

.golangci.yml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
linters:
2+
fast: false
3+
enable:
4+
- misspell
5+
- gosec
6+
linters-settings:
7+
errcheck:
8+
check-type-assertions: true
9+
staticcheck:
10+
go: 1.16
11+
misspell:
12+
locale: US
13+
ignore-words: []
14+
issues:
15+
exclude:
16+
- SA3000

Makefile

+3-7
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,20 @@ BUILD_LDFLAGS = -X $(PKG).commit=$(COMMIT) -X $(PKG).date=$(DATE)
1414

1515
default: test
1616

17-
ci: depsdev test sec
17+
ci: depsdev test
1818

1919
test:
2020
go test ./... -coverprofile=coverage.out -covermode=count
2121

22-
sec:
23-
gosec ./...
24-
2522
lint:
2623
golangci-lint run ./...
2724

2825
build:
2926
go build -ldflags="$(BUILD_LDFLAGS)" -o grep
3027

3128
depsdev:
32-
go install github.com/Songmu/ghch/cmd/[email protected]
33-
go install github.com/Songmu/gocredits/cmd/[email protected]
34-
go install github.com/securego/gosec/v2/cmd/[email protected]
29+
go install github.com/Songmu/ghch/cmd/ghch@latest
30+
go install github.com/Songmu/gocredits/cmd/gocredits@latest
3531

3632
prerelease:
3733
git pull origin main --tag

0 commit comments

Comments
 (0)