chore(deps): bump github.com/schollz/progressbar/v3 from 3.14.6 to 3.15.0 #36
Workflow file for this run
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: "Code Coverage" | |
on: | |
push: | |
branches: master | |
paths: | |
- ".github/workflows/coverage.yml" | |
- "tests/unit/*.go" | |
pull_request: | |
branches: master | |
jobs: | |
code-coverage: | |
name: Codecov | |
runs-on: ubuntu-latest | |
if: | | |
github.actor != 'dependabot[bot]' && | |
github.actor != 'github-actions[bot]' && | |
github.actor != 'protected-auto-commits[bot]' | |
steps: | |
- name: Checkout Repo | |
uses: actions/checkout@v4 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: "1.22.x" | |
- name: Install Dependencies | |
run: go mod tidy | |
- name: Run tests with coverage | |
run: | | |
go test -coverprofile=coverage.txt -covermode=atomic -coverpkg=./pkg/... ./tests/unit/... | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v4.5.0 | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
files: ./coverage.txt | |
flags: unittests | |
name: codecov-umbrella | |
fail_ci_if_error: true |