diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index db14fa8..57546e3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -67,6 +67,13 @@ jobs: - name: Run tests with coverage run: npm run test:coverage + - name: Upload coverage to Codecov + # codecov/codecov-action@v6.0.0 + uses: codecov/codecov-action@57e3a136b779b570ffcdbf80b3bdc90e7fab3de2 + with: + files: coverage/coverage-final.json + token: ${{ secrets.CODECOV_TOKEN }} + examples: name: Examples runs-on: ubuntu-latest diff --git a/README.md b/README.md index 0a8edc6..091a385 100644 --- a/README.md +++ b/README.md @@ -6,6 +6,7 @@ [![Downloads](https://img.shields.io/npm/dm/@opendecree/sdk)](https://www.npmjs.com/package/@opendecree/sdk) [![License](https://img.shields.io/github/license/opendecree/decree-typescript)](LICENSE) [![Project Status: WIP](https://www.repostatus.org/badges/latest/wip.svg)](https://www.repostatus.org/#wip) +[![codecov](https://codecov.io/gh/opendecree/decree-typescript/graph/badge.svg)](https://codecov.io/gh/opendecree/decree-typescript) TypeScript SDK for [OpenDecree](https://github.com/opendecree/decree) -- schema-driven configuration management. diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..4c51f58 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,9 @@ +coverage: + status: + project: + default: + target: auto + threshold: 0% + patch: + default: + target: 80%