From 67181d2754670175d0b4f1d826640c3055907618 Mon Sep 17 00:00:00 2001 From: simlecode <69969590+simlecode@users.noreply.github.com> Date: Thu, 30 Nov 2023 11:27:20 +0800 Subject: [PATCH] chore: support update log level --- .github/workflows/common_go.yml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/common_go.yml b/.github/workflows/common_go.yml index 6b37e1d8d4..867c330923 100644 --- a/.github/workflows/common_go.yml +++ b/.github/workflows/common_go.yml @@ -11,6 +11,11 @@ on: type: number has_ffi: type: boolean + log_level: + description: 'specifies the log level' + required: false + default: info + type: string jobs: @@ -61,7 +66,9 @@ jobs: test -z "$(git status --porcelain)" - name: Run coverage - run: go test -coverpkg=./... -race -coverprofile=coverage.txt -covermode=atomic ./... -v --timeout ${{ inputs.test_timeout }}m + run: | + export GOLOG_LOG_LEVEL=${{ inputs.log_level }} + go test -coverpkg=./... -race -coverprofile=coverage.txt -covermode=atomic ./... -v --timeout ${{ inputs.test_timeout }}m - name: Upload uses: codecov/codecov-action@v3