Skip to content

Commit

Permalink
ci: enable codecov coverage upload
Browse files Browse the repository at this point in the history
  • Loading branch information
kelsos committed Feb 7, 2024
1 parent 1e3450d commit a9a3796
Show file tree
Hide file tree
Showing 4 changed files with 148 additions and 1 deletion.
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.

0 comments on commit a9a3796

Please sign in to comment.