Skip to content

Commit

Permalink
Add test command
Browse files Browse the repository at this point in the history
  • Loading branch information
lewislbr committed Oct 2, 2023
1 parent 218c5b6 commit 3dd15dd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@
build:
@docker build -t lewislbr/gss:dev .

run-default: build
run: build
@docker run --rm -p 8080:8080 -p 9090:9090 -v $$PWD/test/public:/dist lewislbr/gss:dev

run-yaml: build
@docker run --rm -p 8080:8080 -p 9090:9090 -v $$PWD/test/gss.yaml:/gss.yaml -v $$PWD/test/public:/dist lewislbr/gss:dev

test:
@sed -i "" "s|"dist"|"test/public"|g" gss.go && go test ./... -count=1 -race; sed -i "" "s|"test/public"|"dist"|g" gss.go

0 comments on commit 3dd15dd

Please sign in to comment.