From 16cc1ab98830bba3a2ce6f88c877ad5e623180d6 Mon Sep 17 00:00:00 2001 From: Ajai Shankar <328008+ajaishankar@users.noreply.github.com> Date: Fri, 4 Oct 2024 00:25:34 -0500 Subject: [PATCH] test: codecov --- .github/workflows/build.yml | 8 +++++++- README.md | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f7e56d8..feff223 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -28,4 +28,10 @@ jobs: - run: npm ci - run: npm run build --if-present - run: npm run typecheck - - run: npm test \ No newline at end of file + - run: npm test + - name: Run coverage + run: npm run coverage + - name: Upload to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} \ No newline at end of file diff --git a/README.md b/README.md index 78f0278..2d14c2a 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +[![version(scoped)](https://img.shields.io/npm/v/pukka.svg)](https://www.npmjs.com/package/pukka) +[![codecov](https://codecov.io/gh/ajaishankar/pukka/graph/badge.svg?token=2O9DD5SEUJ)](https://codecov.io/gh/ajaishankar/pukka) + # pukka! pukka is a Typescript schema-first, zod compatible, headless validation library.