feat(logging): Allow configuring logging verbosity level (#872) #799
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: | |
pull_request: | |
paths-ignore: | |
- '*.md' | |
- '.examples/**' | |
push: | |
branches: | |
- master | |
paths-ignore: | |
- '*.md' | |
- '.github/**' | |
- '.examples/**' | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/setup-go@v5 | |
with: | |
go-version: 1.22.2 | |
- uses: actions/checkout@v4 | |
- name: Build binary to make sure it works | |
run: go build | |
- name: Test | |
# We're using "sudo" because one of the tests leverages ping, which requires super-user privileges. | |
# As for the 'env "PATH=$PATH" "GOROOT=$GOROOT"', we need it to use the same "go" executable that | |
# was configured by the "Set up Go" step (otherwise, it'd use sudo's "go" executable) | |
run: sudo env "PATH=$PATH" "GOROOT=$GOROOT" go test ./... -race -coverprofile=coverage.txt -covermode=atomic | |
- name: Codecov | |
uses: codecov/[email protected] | |
with: | |
files: ./coverage.txt | |
token: ${{ secrets.CODECOV_TOKEN }} |