Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 327ef46

Browse files
chore: add codecov (#9)
* chore: add codecov * fix * fix
1 parent c2a1eed commit 327ef46

File tree

4 files changed

+30
-5
lines changed

4 files changed

+30
-5
lines changed

‎.codecov.yml‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
coverage:
2+
status:
3+
patch:
4+
default:
5+
target: 90%
6+
project:
7+
default:
8+
target: auto
9+
threshold: 2%
10+
comment:
11+
layout: 'diff, flags, files'
12+
behavior: new
13+
require_changes: false

‎.github/workflows/main.yml‎

Lines changed: 15 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,25 @@
11
name: CI
2-
on: [push, pull_request]
2+
on: [push]
33
jobs:
44
build:
5-
name: Test
5+
name: CI
66
runs-on: ubuntu-latest
77
steps:
88
- uses: actions/checkout@v2
9-
- uses: borales/actions-yarn@v2.3.0
9+
- name: set node.js 16.x
10+
uses: actions/setup-node@v3
11+
with:
12+
node-version: 16.x
13+
- uses: borales/actions-yarn@v4
1014
with:
1115
cmd: install
12-
- uses: borales/actions-yarn@v2.3.0
16+
- uses: borales/actions-yarn@v4
1317
with:
1418
cmd: check:all
19+
- name: Code coverage report
20+
uses: codecov/codecov-action@v2
21+
with:
22+
yml: ./codecov.yml
23+
token: ${{ secrets.CODECOV_TOKEN }}
24+
flags: unittest
25+
name: codecov

‎README.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
![action status](https://github.com/yeonjuan/parse-git-diff/actions/workflows/main.yml/badge.svg?branch=main)
22
[![npm version](https://badge.fury.io/js/parse-git-diff.svg)](https://www.npmjs.com/package/parse-git-diff)
33
[![license](https://img.shields.io/badge/License-MIT-yellow.svg)](./LICENSE)
4+
[![codecov](https://codecov.io/gh/yeonjuan/parse-git-diff/branch/main/graph/badge.svg?token=J1FUY9P07I)](https://codecov.io/gh/yeonjuan/parse-git-diff)
45

56
# parse-git-diff
67

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"prepublish": "yarn build",
1010
"build": "rimraf build && rollup -c rollup.config.js && tsc --declaration",
1111
"format": "prettier . --write",
12-
"test": "jest",
12+
"test": "jest --coverage",
1313
"prebuild": "yarn check:all",
1414
"publish:demo": "gh-pages -d demo",
1515
"check:all": "prettier --check . && tsc --noEmit && yarn test",

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /