From bf60df48e54e8b76f13fbc97cb04b30f7d29cd1c Mon Sep 17 00:00:00 2001 From: HiteshRepo Date: Sun, 28 Jan 2024 11:44:42 +0530 Subject: [PATCH] push test logs to file --- .github/workflows/ci.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 91a914cd8..c07448c73 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -304,7 +304,10 @@ jobs: run: go install github.com/gotesttools/gotestfmt/v2/cmd/gotestfmt@latest - name: one test - run: go test -v -run '^TestPathUnitSuite/Test_Stuff$' ./pkg/path + run: | + go test -v -run '^TestPathUnitSuite/Test_Stuff$' ./pkg/path \ + 2>&1 | tee ./testlog/gotest-unit.log + # run the tests # - name: Unit Tests # env: