Skip to content

Bump codecov/codecov-action from 4.6.0 to 5.0.2 (#97) #249

Bump codecov/codecov-action from 4.6.0 to 5.0.2 (#97)

Bump codecov/codecov-action from 4.6.0 to 5.0.2 (#97) #249

Workflow file for this run

name: "Code Coverage"
on:
workflow_call:
secrets:
CODECOV_TOKEN:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # pin@v4
- uses: actions/setup-go@41dfa10bad2bb2ae585af6ee5bb4d7d973ad74ed # pin@v5
with:
go-version: '1.23'
check-latest: true
- name: Run test coverage
run: |
if make -n coverage &>/dev/null; then
echo "Running coverage through make"
make coverage
else
echo "No Makefile coverage target, using default behavior"
go test -coverprofile=coverage.out ./...
fi
- uses: codecov/codecov-action@5c47607acb93fed5485fdbf7232e8a31425f672a # pin@v4
with:
files: coverage.out
token: ${{ secrets.CODECOV_TOKEN }}