Revert coverage
Some checks failed
Run short tests / run-tests (push) Failing after 44s
Run nightly tests / nightly-tests (push) Has been cancelled

This commit is contained in:
2025-07-15 22:32:24 +02:00
parent 295c8f1589
commit 7818a3fb44

View File

@@ -19,21 +19,3 @@ jobs:
working-directory: ./src working-directory: ./src
run: | # TODO: at this moment only Home Assistant component is tested run: | # TODO: at this moment only Home Assistant component is tested
go test -v --short ./components/homeassistant/... -cover -coverprofile=cover.out go test -v --short ./components/homeassistant/... -cover -coverprofile=cover.out
- name: Upload coverage report
uses: actions/upload-artifact@v3
with:
name: coverage-report_build_${{ github.run_number }}
path: ${{ github.workspace }}/src/cover.out
retention-days: 1
- name: Generate coverage badge
run: |
go install github.com/t-yuki/gocover-cobertura@latest
gocover-cobertura < cover.out > coverage.xml
go install github.com/boumenot/gocover-cobertura@latest
gocover-cobertura -coverprofile=cover.out -o coverage.svg
- name: Upload coverage svg
uses: actions/upload-artifact@v3
with:
path: coverage.svg
retention-days: 1
name: coverage-badge_build_${{ github.run_number }}