Skip to content

Merge pull request #3112 from chrischdi/pr-vm-operator-fix-nilpointer… #1507

Merge pull request #3112 from chrischdi/pr-vm-operator-fix-nilpointer…

Merge pull request #3112 from chrischdi/pr-vm-operator-fix-nilpointer… #1507

Workflow file for this run

name: codecov
on:
push:
branches:
- main
permissions:
contents: read
jobs:
coverage:
runs-on: ubuntu-latest
steps:
- name: Harden Runner
uses: step-security/harden-runner@17d0e2bd7d51742c71671bd19fa12bdc9d40a3d6 # v2.8.1
with:
egress-policy: audit
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: '1.22'
- run: "PATH=/usr/local/go/bin:$PATH make test-cover"
# Retry codecov upload. It is flaky due to a known issue https://community.codecov.com/t/upload-issues-unable-to-locate-build-via-github-actions-api/3954
- uses: Wandalen/wretry.action@6feedb7dedadeb826de0f45ff482b53b379a7844 # v3.5.0
with:
attempt_limit: 20
action: codecov/codecov-action@7afa10ed9b269c561c2336fd862446844e0cbf71 # v4.2.0
with: |
file: ./coverage.out
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}