Skip to content

Commit 5c2f5c8

Browse files
authored
use codecov action (#24)
npm package is deprecated. this will also fix CI for pull requests from forks
1 parent 96f5419 commit 5c2f5c8

File tree

3 files changed

+12
-196
lines changed

3 files changed

+12
-196
lines changed

.github/workflows/ci.yml

+12-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,18 @@ jobs:
1616
with:
1717
path: packages/eslint-plugin-react-prefer-function-component
1818
ci:
19-
name: Lint and Test
19+
name: Lint
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: tatethurston/github-actions/test@main
22+
- uses: tatethurston/github-actions/build@main
23+
- run: pnpm lint
24+
test:
25+
name: Test
26+
runs-on: ubuntu-latest
27+
steps:
28+
- uses: tatethurston/github-actions/build@main
29+
- run: pnpm test:ci
30+
- uses: codecov/codecov-action@v5
2331
with:
24-
codecov_token: ${{ secrets.CODECOV_TOKEN }}
32+
fail_ci_if_error: true
33+
token: ${{ secrets.CODECOV_TOKEN }}

package.json

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
"@types/node": "^22.13.10",
3434
"@typescript-eslint/eslint-plugin": "^8.26.1",
3535
"@typescript-eslint/parser": "^8.26.1",
36-
"codecov": "^3.8.3",
3736
"eslint": "^9.22.0",
3837
"eslint-config-prettier": "^10.1.1",
3938
"eslint-plugin-react": "^7.37.4",

pnpm-lock.yaml

-192
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)