Skip to content

Commit

Permalink
move build to first place
Browse files Browse the repository at this point in the history
  • Loading branch information
SayHeyD committed Aug 9, 2023
1 parent 97a4b6d commit 86974f3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
.PHONY: test

build:
@echo "Building application... πŸ”„"
@go build -tags main -o bin/sam . && echo "Finished building βœ…" || (echo echo "Build failed ❌"; exit 1)

docs:
@echo "Building docs application... πŸ”„"
@go build -tags docs -o bin/sam . && echo "Finished building βœ…" || (echo echo "Build failed ❌"; exit 1)
@echo "\nGenerating docs... πŸ”„"
@./bin/sam && echo "Finished docs generation βœ…" || (echo echo "Docs generation failed ❌"; exit 1)

build:
@echo "Building application... πŸ”„"
@go build -tags main -o bin/sam . && echo "Finished building βœ…" || (echo echo "Build failed ❌"; exit 1)

test:
@echo "Running test... πŸ”„"
@go test ./... -v -parallel 4 -cover && echo "Tests finished successfully βœ…" || (echo echo "Tests finished with errors ❌"; exit 1)
Expand Down

0 comments on commit 86974f3

Please sign in to comment.