From 62ad6523fc60c2e9f82f5645274d32be279736ff Mon Sep 17 00:00:00 2001 From: mikehquan19 Date: Mon, 9 Feb 2026 20:09:15 -0600 Subject: [PATCH 1/2] Integrate test to workflow --- .github/workflows/go.yml | 6 ++++++ 1 file changed, 6 insertions(+) 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 From 0521272920b3d0c37a0be97a93bec08e4dc4c78a Mon Sep 17 00:00:00 2001 From: mikehquan19 Date: Mon, 9 Feb 2026 20:11:29 -0600 Subject: [PATCH 2/2] Run the test without caching results --- Makefile | 2 +- build.bat | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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