From 6c6189c61dde2172c5db04838f6e85560ab70dd2 Mon Sep 17 00:00:00 2001 From: Olivier Poitrey Date: Tue, 5 Sep 2023 13:19:51 +0200 Subject: [PATCH] Migrate from gocover Fixes #142 --- .github/workflows/go.yml | 13 ++++++++++++- README.md | 2 +- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/go.yml b/.github/workflows/go.yml index df52334..442efa8 100644 --- a/.github/workflows/go.yml +++ b/.github/workflows/go.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - go: ["1.17"] + go: ["1.17", "1.21"] steps: - name: Set up Go ${{ matrix.go }} @@ -24,3 +24,14 @@ jobs: - name: Test run: go test ./... + + coverage: + runs-on: ubuntu-latest + steps: + - name: Update coverage report + uses: ncruces/go-coverage-report@main + with: + report: 'true' + chart: 'true' + amend: 'true' + continue-on-error: true diff --git a/README.md b/README.md index 0ad3e94..d274285 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Go CORS handler [![godoc](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/rs/cors) [![license](http://img.shields.io/badge/license-MIT-red.svg?style=flat)](https://raw.githubusercontent.com/rs/cors/master/LICENSE) [![build](https://img.shields.io/travis/rs/cors.svg?style=flat)](https://travis-ci.org/rs/cors) [![Coverage](http://gocover.io/_badge/github.com/rs/cors)](http://gocover.io/github.com/rs/cors) +# Go CORS handler [![godoc](http://img.shields.io/badge/godoc-reference-blue.svg?style=flat)](https://godoc.org/github.com/rs/cors) [![license](http://img.shields.io/badge/license-MIT-red.svg?style=flat)](https://raw.githubusercontent.com/rs/cors/master/LICENSE) [![build](https://img.shields.io/travis/rs/cors.svg?style=flat)](https://travis-ci.org/rs/cors) [![Go Coverage](https://github.com/rs/cors/wiki/coverage.svg)](https://raw.githack.com/wiki/rs/cors/coverage.html) CORS is a `net/http` handler implementing [Cross Origin Resource Sharing W3 specification](http://www.w3.org/TR/cors/) in Golang.