ci improvements

This commit is contained in:
Dustin Decker
2022-05-23 21:13:32 -07:00
parent cd8fdec3aa
commit 0eac3be94c
4 changed files with 4 additions and 3 deletions
-1
View File
@@ -11,7 +11,6 @@ on:
- v*
branches:
- main
pull_request:
permissions:
contents: write
-1
View File
@@ -7,7 +7,6 @@ on:
- v*
branches:
- main
pull_request:
jobs:
test:
-1
View File
@@ -6,7 +6,6 @@ on:
- v*
branches:
- main
pull_request:
permissions:
contents: read
+4
View File
@@ -1,6 +1,7 @@
PROTOS_IMAGE ?= trufflesecurity/protos:1.18-0
.PHONY: check
.PHONY: lint
.PHONY: test
.PHONY: test-race
.PHONY: run
@@ -20,6 +21,9 @@ check:
go fmt $(shell go list ./... | grep -v /vendor/)
go vet $(shell go list ./... | grep -v /vendor/)
lint:
golangci-lint run --out-format=colored-line-number --timeout 10m
test-failing:
CGO_ENABLED=0 go test -timeout=5m $(shell go list ./... | grep -v /vendor/) | grep FAIL