Revert coverage
This commit is contained in:
18
.github/workflows/short-tests.yml
vendored
18
.github/workflows/short-tests.yml
vendored
@@ -19,21 +19,3 @@ jobs:
|
||||
working-directory: ./src
|
||||
run: | # TODO: at this moment only Home Assistant component is tested
|
||||
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 }}
|
||||
|
||||
Reference in New Issue
Block a user