chore: add error logging and explicitly set user-agent #238
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 Client Module Coverage" | |
on: | |
push: | |
branches: ["main"] | |
pull_request: | |
branches: ["main"] | |
jobs: | |
unit_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
if: success() | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.20.2 | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Run unit tests with coverage | |
run: make test-coverage-client | |
- name: Remove mocks.go lines from coverage_raw.out | |
run: | | |
pushd client | |
sed '/mocks.go/d' coverage_raw.out > coverage.out | |
popd | |
- name: Convert coverage to lcov | |
uses: jandelgado/gcov2lcov-action@v1 | |
with: | |
working-directory: client | |
- name: Coveralls | |
uses: coverallsapp/github-action@v2 | |
with: | |
path-to-lcov: client/coverage.lcov | |
github-token: ${{ secrets.GITHUB_TOKEN }} |