Skip to content

Fix coverage report by removing .go if present #86

Fix coverage report by removing .go if present

Fix coverage report by removing .go if present #86

Workflow file for this run

name: Validation
on: [push, pull_request]
defaults:
run:
shell: bash
jobs:
basic:
name: generate and vet
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: './go.mod'
- run: |
make generate
make manifests
go mod tidy
make fmt
make vet
git diff --exit-code
unit-tests:
name: Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: './go.mod'
- run: |
make test
sudo rm -rf .go # these files confuse the coverage report
- name: Update coverage report
uses: ncruces/go-coverage-report@v0
with:
coverage-file: cover.out
report: true
chart: false
amend: false
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
continue-on-error: true