diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 09f7118..7453812 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -25,4 +25,10 @@ jobs: - name: Test run: go test -v ./... - name: Upload coverage to Codecov - run: bash <(curl -s https://codecov.io/bash) \ No newline at end of file + - name: Upload coverage report + uses: codecov/codecov-action@v1.0.2 + with: + token: 7106da3d-7479-471f-ae37-e3680b62063d + file: ./coverage.txt + flags: unittests + name: codecov-umbrella \ No newline at end of file diff --git a/README.md b/README.md index 33df447..0af6406 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,9 @@ ![underscore](https://socialify.git.ci/rjNemo/underscore/image?description=1&font=Raleway&language=1&logo=https%3A%2F%2Fgithub.com%2FrjNemo%2Funderscore%2Fblob%2Fmain%2Fdocs%2Fstatic%2Flogo.png%3Fraw%3Dtrue&name=1&pattern=Floating%20Cogs&theme=Light) +[![Actions Status](https://github.com/rjNemo/underscore/workflows/build/badge.svg)](https://github.com/rjNemo/underscore/actions) +[![codecov](https://codecov.io/gh/rjNemo/underscore/branch/master/graph/badge.svg)](https://codecov.io/gh/rjNemo/underscore) + `underscore` is a `Go` library providing useful functional programming helpers without extending any built-in objects. It is mostly a port from the `underscore.js` library based on generics brought by `go1.18`.