Bump codecov/codecov-action from 3 to 5 #194
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: ci | |
on: | |
pull_request: | |
branches: | |
- master | |
push: | |
branches: | |
- master | |
jobs: | |
ci: | |
name: go${{ matrix.go_version }}/${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
go_version: ['1.22'] | |
os: [ubuntu-latest, windows-latest, macOS-latest] | |
steps: | |
- name: Use Go ${{ matrix.go_version }} | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go_version }} | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
- name: run coverage | |
run: | | |
bash hack/coverage | |
- name: Install and check | |
run: | | |
go build -mod=vendor | |
bash -c "./wwhrd check" | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v5 | |
if: matrix.go_version == '1.22' && matrix.os == 'ubuntu-latest' | |
with: | |
token: ${{ secrets.CODECOV_TOKEN }} | |
file: ./.cover/cover.out | |
fail_ci_if_error: true |