Skip to content

Commit 59a01be

Browse files
committed
Fix codecov
1 parent e334940 commit 59a01be

File tree

4 files changed

+18
-11
lines changed

4 files changed

+18
-11
lines changed

.codecov.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,19 @@
11
codecov:
2-
require_ci_to_pass: yes
2+
notify:
3+
require_ci_to_pass: yes
34

45
coverage:
56
precision: 2
67
round: down
78
range: '10...100'
89

910
status:
10-
project: yes
11-
patch: yes
11+
project:
12+
default:
13+
threshold: 1
14+
patch:
15+
default:
16+
threshold: 1
1217
changes: no
1318

1419
parsers:
@@ -20,6 +25,6 @@ parsers:
2025
macro: no
2126

2227
comment:
23-
layout: 'reach,diff,flags,tree'
28+
layout: 'header, diff'
2429
behavior: default
2530
require_changes: no

.github/workflows/push.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,6 @@ jobs:
88

99
steps:
1010
- uses: actions/checkout@v1
11-
- uses: codecov/[email protected]
12-
with:
13-
token: ${{secrets.CODECOV_TOKEN}}
1411

1512
- name: install dependencies
1613
run: yarn
@@ -26,3 +23,7 @@ jobs:
2623

2724
- name: ts type checks
2825
run: yarn ts-check
26+
27+
- uses: codecov/[email protected]
28+
with:
29+
token: ${{secrets.CODECOV_TOKEN}}

jest.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ module.exports = {
3131
coveragePathIgnorePatterns: ['/node_modules/', 'stories'],
3232

3333
// A list of reporter names that Jest uses when writing coverage reports
34-
coverageReporters: ['lcov', 'clover', 'text', 'text-summary'],
34+
coverageReporters: ['lcov', 'text-summary'],
3535

3636
// An object that configures minimum threshold enforcement for coverage results
3737
// coverageThreshold: null,

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
"build": "microbundle",
1111
"storybook": "start-storybook -p 6006",
1212
"build-storybook": "build-storybook",
13+
"codecov": "codecov",
1314
"lint": "eslint 'src/**/*.{ts,tsx,js,jsx}'",
1415
"lint:fix": "yarn lint --fix",
1516
"prettier:check": "prettier --check 'src/**/*'",
@@ -45,6 +46,8 @@
4546
"@storybook/addon-links": "^5.2.1",
4647
"@storybook/addons": "^5.2.1",
4748
"@storybook/react": "^5.2.1",
49+
"@testing-library/react": "^9.2.0",
50+
"@types/jest": "^24.0.18",
4851
"@types/react": "^16.9.2",
4952
"@types/react-dom": "^16.9.1",
5053
"@types/storybook__react": "^4.0.2",
@@ -57,10 +60,8 @@
5760
"eslint-config-prettier": "^6.3.0",
5861
"eslint-plugin-react": "^7.15.0",
5962
"husky": ">=1",
60-
"lint-staged": ">=8",
61-
"@testing-library/react": "^9.2.0",
62-
"@types/jest": "^24.0.18",
6363
"jest": "^24.9.0",
64+
"lint-staged": ">=8",
6465
"microbundle": "^0.11.0",
6566
"prettier": "1.18.2",
6667
"react": "^16.10.1",

0 commit comments

Comments
 (0)