about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorMarkus Wüstenberg2020-09-18 14:05:53 +0200
committerGitHub2020-09-18 14:05:53 +0200
commite8faab5207e6ed48aef0a6b1ade710dd8fbfadd3 (patch)
treeb172ee8cd730329037af920c24d7269cc818e2c6
parent15d2cc9373d10e2d2f3bedde0a0a6d32c243ddfa (diff)
downloadgomponents-e8faab5207e6ed48aef0a6b1ade710dd8fbfadd3.tar.lz
gomponents-e8faab5207e6ed48aef0a6b1ade710dd8fbfadd3.tar.zst
gomponents-e8faab5207e6ed48aef0a6b1ade710dd8fbfadd3.zip
Try out codecov.io (#5)
-rw-r--r--.github/workflows/go.yml5
-rw-r--r--README.md1
2 files changed, 5 insertions, 1 deletions
diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml
index e9ccec8..4c541ea 100644
--- a/.github/workflows/go.yml
+++ b/.github/workflows/go.yml
@@ -27,7 +27,10 @@ jobs:
       run: go build -v .
 
     - name: Test
-      run: go test -v ./...
+      run: go test -v -coverprofile=coverage.txt ./...
+
+    - name: Coverage
+      uses: codecov/codecov-action@v1.0.13
 
   lint:
     name: Lint
diff --git a/README.md b/README.md
index f442e40..5d15060 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,7 @@
 # gomponents
 
 [![GoDoc](https://godoc.org/github.com/maragudk/gomponents?status.svg)](https://godoc.org/github.com/maragudk/gomponents)
+[![codecov](https://codecov.io/gh/maragudk/gomponents/branch/master/graph/badge.svg)](https://codecov.io/gh/maragudk/gomponents)
 
 gomponents are components of DOM nodes for Go, that can render to an HTML Document.
 gomponents aims to make it easy to build HTML pages of reusable components,