Skip to content

Commit 700cda2

Browse files
committed
Integrate Codecov
1 parent 02895da commit 700cda2

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/build.yml

+10-2
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,20 @@ jobs:
2121
with:
2222
cmd: build
2323

24+
- name: Lint
25+
uses: borales/actions-yarn@v4
26+
with:
27+
cmd: lint
28+
2429
- name: Test
2530
uses: borales/actions-yarn@v4
2631
with:
2732
cmd: test
2833

29-
- name: Lint
34+
- name: Generate test coverage
3035
uses: borales/actions-yarn@v4
3136
with:
32-
cmd: lint
37+
cmd: report-coverage
38+
39+
- name: Upload coverage reports to Codecov
40+
uses: codecov/codecov-action@v3

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"build": "cross-env BABEL_ENV=production node rollup.js",
1111
"lint": "eslint src/ test/",
1212
"test": "nyc --cache --reporter=text --reporter=html ava",
13-
"report-coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov",
13+
"report-coverage": "nyc report --reporter=text-lcov > coverage.lcov",
1414
"watch:build": "npm run build -- --watch",
1515
"watch:lint": "chokidar 'src/**/*.js' 'test/**/*.js' -c 'eslint {path}'",
1616
"watch:test": "ava --watch",

0 commit comments

Comments
 (0)