From d356addea27a44499be94c5b4836641179639cfe Mon Sep 17 00:00:00 2001 From: Techatrix Date: Sun, 15 Sep 2024 19:03:18 +0200 Subject: [PATCH] publish coverage report to codecov --- .github/workflows/main.yml | 10 +++++++++- README.md | 3 +++ codecov.yml | 5 +++++ 3 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 codecov.yml diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 55adbbe..c27cd86 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,4 +18,12 @@ jobs: - run: npm run typecheck - run: npm run lint - run: npm run format -- --check - - run: npm run test + - run: npm run coverage + + - name: Upload coverage reports to Codecov + uses: codecov/codecov-action@v4 + with: + token: ${{ secrets.CODECOV_TOKEN }} + slug: zigtools/release-worker + fail_ci_if_error: true + verbose: true diff --git a/README.md b/README.md index 0a5472d..e38abe5 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,6 @@ +[![CI](https://github.com/zigtools/release-worker/workflows/CI/badge.svg)](https://github.com/zigtools/release-worker/actions) +[![codecov](https://codecov.io/gh/zigtools/release-worker/graph/badge.svg?token=A3YHEUHMT2)](https://codecov.io/gh/zigtools/release-worker) + A Cloudflare Worker for managing ZLS build artifacts. # API diff --git a/codecov.yml b/codecov.yml new file mode 100644 index 0000000..640bd89 --- /dev/null +++ b/codecov.yml @@ -0,0 +1,5 @@ +coverage: + status: + patch: + default: + target: 100%