From ce34da0d29befff53ec1ceb0ded751b239879e59 Mon Sep 17 00:00:00 2001 From: tot0p Date: Mon, 26 Feb 2024 19:07:56 +0100 Subject: [PATCH 1/2] add codecov --- .github/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..152d123 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,19 @@ +name: Test and coverage + +on: [push, pull_request] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v4 + with: + go-version: 'stable' + - name: Run coverage + run: go test ./... -race -coverprofile=coverage.txt -covermode=atomic + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4.0.1 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: Eclalang/hash \ No newline at end of file From 84fb6a9a4be07534bf498694f4456412e165437a Mon Sep 17 00:00:00 2001 From: tot0p Date: Mon, 26 Feb 2024 19:08:28 +0100 Subject: [PATCH 2/2] update readme --- README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/README.md b/README.md index 69e703c..c217680 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,8 @@ # Hash library +[![Go Report Card](https://goreportcard.com/badge/github.com/Eclalang/hash)](https://goreportcard.com/report/github.com/Eclalang/hash) +[![codecov](https://codecov.io/gh/Eclalang/hash/graph/badge.svg?token=YNCIYERVBO)](https://codecov.io/gh/Eclalang/hash) + ## Candidate functions : | Func Name | Prototype | Description | Comments |