Skip to content

Commit

Permalink
publish coverage report to codecov
Browse files Browse the repository at this point in the history
  • Loading branch information
Techatrix committed Sep 15, 2024
1 parent 1a337cc commit d356add
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 5 additions & 0 deletions codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
coverage:
status:
patch:
default:
target: 100%

0 comments on commit d356add

Please sign in to comment.