Skip to content

Commit

Permalink
chore: support update log level
Browse files Browse the repository at this point in the history
  • Loading branch information
simlecode committed Nov 30, 2023
1 parent 51546ae commit 67181d2
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/common_go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 67181d2

Please sign in to comment.