Skip to content

Commit 79cc869

Browse files
Switch to Codecov for coverage reporting and add badges to README
1 parent de7de91 commit 79cc869

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,12 @@ jobs:
3535
path: test-report.json
3636
reporter: golang-json
3737

38-
- name: Coverage report
39-
if: always() && github.event_name == 'pull_request'
40-
uses: vladopajic/go-test-coverage@v2
38+
- name: Upload coverage
39+
if: always()
40+
uses: codecov/codecov-action@v5
4141
with:
42-
profile: coverage.out
43-
threshold-file: 0
44-
threshold-package: 0
45-
threshold-total: 0
46-
git-token: ${{ github.token }}
47-
git-branch: badges
42+
files: coverage.out
43+
token: ${{ secrets.CODECOV_TOKEN }}
4844

4945
- name: Vet
5046
run: go vet ./...

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# SRNE Solar Controller
22

3+
[![CI](https://github.com/daniel-sullivan/srne-solar-controller/actions/workflows/ci.yml/badge.svg)](https://github.com/daniel-sullivan/srne-solar-controller/actions/workflows/ci.yml)
4+
[![codecov](https://codecov.io/gh/daniel-sullivan/srne-solar-controller/graph/badge.svg)](https://codecov.io/gh/daniel-sullivan/srne-solar-controller)
5+
[![Go Report Card](https://goreportcard.com/badge/github.com/daniel-sullivan/srne-solar-controller)](https://goreportcard.com/report/github.com/daniel-sullivan/srne-solar-controller)
6+
37
Monitor and control SRNE ASP/ASF-series hybrid inverters via MODBUS over Solarman V5 wifi dongles.
48

59
Integrates with Home Assistant through MQTT auto-discovery, providing ~65 sensor entities and 7 writable controls. Also includes a live web dashboard and CLI for direct register access. Supports multi-inverter parallel systems with aggregated data and synchronized settings writes.

0 commit comments

Comments
 (0)