This repository was archived by the owner on Dec 22, 2025. It is now read-only.
Update README.md #62
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: coverage report | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| build: | |
| runs-on: ubuntu-20.04 | |
| name: generate and publish coverage | |
| env: | |
| COVERAGE_REPORT: coverage.txt | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v2 | |
| - name: setup Go | |
| uses: actions/setup-go@v3 | |
| with: | |
| go-version: "1.17" | |
| - name: generate coverage report | |
| run: make coverage | |
| - name: upload coverage to codecov | |
| uses: codecov/codecov-action@v2 | |
| with: | |
| directory: . | |
| files: ${{env.COVERAGE_REPORT}} | |
| flags: tests | |
| name: codecov-umbrella | |
| verbose: true |