Update module github.com/spf13/cobra to v1.8.1 #604
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 coverage | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: '1.20' | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Run tests | |
run: go test -covermode atomic -coverprofile=profile.cov ./... | |
- name: Convert .cov to lcov | |
uses: jandelgado/gcov2lcov-action@v1.0.0 | |
with: | |
infile: profile.cov | |
outfile: coverage.lcov | |
- name: Coveralls | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: coverage.lcov |