diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index 90c9f4c..9c29868 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -30,6 +30,9 @@ jobs: - name: Check run: make check + - name: Test + run: make test + - name: Build run: make build @@ -51,5 +54,8 @@ jobs: - name: Check run: .\build.bat check + - name: Test + run: .\build.bat test + - name: Build run: .\build.bat build diff --git a/Makefile b/Makefile index 9903b9f..647088f 100644 --- a/Makefile +++ b/Makefile @@ -16,7 +16,7 @@ build: ./main.go go build -o $(EXEC_NAME) ./main.go test: - go test ./... + go test ./... -count=1 clean: $(EXEC_NAME) rm $(EXEC_NAME) diff --git a/build.bat b/build.bat index 9a8003a..5eb076f 100644 --- a/build.bat +++ b/build.bat @@ -41,7 +41,7 @@ echo[ :test echo Testing... -go test ./... +go test ./... -count=1 if ERRORLEVEL 1 exit /b %ERRORLEVEL% :: fail if error occurred echo Testing complete! if %skip%==1 exit