Skip to content

Commit

Permalink
Update make cmds
Browse files Browse the repository at this point in the history
  • Loading branch information
lildude committed Oct 12, 2023
1 parent 5d5d70c commit cc5c117
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,23 +3,23 @@
SHA=`git show --quiet --format=format:%H`

build:
go build -o app cmd/main.go
CGO_ENABLED=0 go build -o app cmd/main.go

build_azure:
GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X github.com/lildude/starling-sweep/internal/ping.Version=$(SHA)" -o app cmd/main.go
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -ldflags "-s -w -X github.com/lildude/starling-sweep/internal/ping.Version=$(SHA)" -o app cmd/main.go

lint:
golangci-lint run --timeout=20m
golangci-lint run

test:
go test -v ./...
ENV=test go test -p 8 ./...

coverage:
go test ./... -coverprofile=coverage.out
ENV=test go test ./... -coverprofile=coverage.out
go tool cover -func coverage.out

start: build
func start
ENV=dev func start

last-uid:
echo GET starling_webhookevent_uid | redis-cli -u ${REDIS_URL}
Expand Down

0 comments on commit cc5c117

Please sign in to comment.