Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: enable codecov coverage upload #20

Merged
merged 1 commit into from
Feb 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
codecov:
require_ci_to_pass: true
notify:
wait_for_ci: true

coverage:
status:
project: off
patch: off
6 changes: 5 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,4 +68,8 @@ jobs:
run: pnpm run build

- name: Test
run: pnpm run test
run: pnpm run test:coverage

- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@
"dev": "unbuild --stub",
"prepublishOnly": "pnpm run build",
"test": "vitest",
"test:coverage": "vitest run --coverage",
"new": "node --experimental-specifier-resolution=node --loader ts-node/esm ./scripts/new-rule.ts",
"docs": "vitepress dev docs",
"docs:build": "pnpm run generate && vitepress build docs",
Expand Down Expand Up @@ -65,6 +66,7 @@
"@typescript-eslint/eslint-plugin": "6.19.1",
"@typescript-eslint/parser": "6.19.1",
"@typescript-eslint/rule-tester": "6.19.1",
"@vitest/coverage-v8": "^1.2.2",
"bumpp": "9.3.0",
"debug": "4.3.4",
"eslint": "8.56.0",
Expand Down
132 changes: 132 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading