Make operations with global logger thread-safe (#145) #148
This file contains hidden or 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: Go | |
| on: | |
| push: | |
| tags: [ v* ] | |
| branches: [ master ] | |
| pull_request: | |
| branches: [ master ] | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| - name: Setup Go | |
| uses: actions/setup-go@v3 | |
| with: | |
| go-version: '>=1.15' | |
| check-latest: true | |
| - name: Get dependencies | |
| run: go get -v -t -d ./... | |
| - name: Test | |
| run: go test -coverprofile=coverage.txt -covermode=atomic ./... | |
| - name: Codecov | |
| uses: codecov/codecov-action@v1.0.13 |