Skip to content

Bump codecov/codecov-action from 3 to 5 #194

Bump codecov/codecov-action from 3 to 5

Bump codecov/codecov-action from 3 to 5 #194

Workflow file for this run

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