Coverage action.

This commit is contained in:
Nuno Cruces 2023-01-27 15:26:12 +00:00
parent 5b4a55e77a
commit 4f0a61b1c1
2 changed files with 7 additions and 4 deletions

View file

@ -17,7 +17,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: oldstable
- name: Build
run: go build -v -tags dev ./...
@ -25,6 +25,9 @@ jobs:
- name: Test
run: go test -v ./...
- name: Update coverage badge
uses: ncruces/go-coverage-report@v0.1.0
macos:
runs-on: macos-latest
steps:
@ -33,7 +36,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: oldstable
- name: Build
run: go build -v ./...
@ -49,7 +52,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.18
go-version: oldstable
- name: Build
run: go build -v ./...

View file

@ -2,7 +2,7 @@
[![Go Reference](https://pkg.go.dev/badge/image)](https://pkg.go.dev/github.com/ncruces/zenity)
[![Go Report](https://goreportcard.com/badge/github.com/ncruces/zenity)](https://goreportcard.com/report/github.com/ncruces/zenity)
[![Go Cover](https://gocover.io/_badge/github.com/ncruces/zenity)](https://gocover.io/github.com/ncruces/zenity)
[![Go Coverage](https://github.com/ncruces/zenity/wiki/coverage.svg)](https://raw.githack.com/wiki/ncruces/zenity/coverage.html)
[![Mentioned in Awesome Go](https://awesome.re/mentioned-badge.svg)](https://github.com/avelino/awesome-go)
This repo includes: