Add missing changes from feature branch
- Update Makefile to run lint and vet before tests - Add install target to Makefile - Fix keychainunlocker_stub.go for non-Darwin platforms
This commit is contained in:
8
Makefile
8
Makefile
@@ -12,7 +12,7 @@ build: ./secret
|
||||
vet:
|
||||
go vet ./...
|
||||
|
||||
test:
|
||||
test: lint vet
|
||||
go test ./... || go test -v ./...
|
||||
|
||||
fmt:
|
||||
@@ -21,9 +21,6 @@ fmt:
|
||||
lint:
|
||||
golangci-lint run --timeout 5m
|
||||
|
||||
# Check all code quality (build + vet + lint + unit tests)
|
||||
check: ./secret vet lint test
|
||||
|
||||
# Build Docker container
|
||||
docker:
|
||||
docker build -t sneak/secret .
|
||||
@@ -35,3 +32,6 @@ docker-run:
|
||||
# Clean build artifacts
|
||||
clean:
|
||||
rm -f ./secret
|
||||
|
||||
install: ./secret
|
||||
cp ./secret $(HOME)/bin/secret
|
||||
|
||||
Reference in New Issue
Block a user