Skip to content

Commit 89c8cba

Browse files
authored
test: run test on github ci (#17)
1 parent 3ba325d commit 89c8cba

File tree

7 files changed

+43
-73
lines changed

7 files changed

+43
-73
lines changed

.github/workflows/nodejs.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
pull_request:
8+
branches: [ master ]
9+
10+
jobs:
11+
Job:
12+
name: Node.js
13+
uses: node-modules/github-actions/.github/workflows/node-test.yml@master
14+
with:
15+
os: 'ubuntu-latest'
16+
version: '14, 16, 18, 20'

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,5 @@ logs
1212
results
1313

1414
node_modules
15-
npm-debug.log
15+
npm-debug.log
16+
coverage

.travis.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

AUTHORS

Lines changed: 0 additions & 5 deletions
This file was deleted.

Makefile

Lines changed: 0 additions & 35 deletions
This file was deleted.

README.md

Lines changed: 16 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,6 @@
1-
giturl
2-
=======
1+
# giturl
32

4-
[![Build Status](https://secure.travis-ci.org/repo-utils/giturl.png)](http://travis-ci.org/repo-utils/giturl)
5-
6-
[![Coverage Status](https://coveralls.io/repos/repo-utils/giturl/badge.png)](https://coveralls.io/r/repo-utils/giturl)
7-
8-
[![Dependency Status](https://gemnasium.com/repo-utils/giturl.png)](https://gemnasium.com/repo-utils/giturl)
3+
[![CI](https://github.com/repo-utils/giturl/actions/workflows/nodejs.yml/badge.svg)](https://github.com/repo-utils/giturl/actions/workflows/nodejs.yml)
94

105
[![NPM](https://nodei.co/npm/giturl.png?downloads=true&stars=true)](https://nodei.co/npm/giturl/)
116

@@ -16,7 +11,7 @@ Transfer git url to web url.
1611
## Install
1712

1813
```bash
19-
$ npm install giturl
14+
npm install giturl
2015
```
2116

2217
## Usage
@@ -53,7 +48,7 @@ giturl.parse('http://github.com/component/emitter/archive/1.0.1.tar.gz')
5348

5449
(The MIT License)
5550

56-
Copyright (c) 2014 fengmk2 <fengmk2@gmail.com> and other contributors
51+
Copyright (c) 2014 fengmk2 &lt;<fengmk2@gmail.com>&gt; and other contributors
5752

5853
Permission is hereby granted, free of charge, to any person obtaining
5954
a copy of this software and associated documentation files (the
@@ -73,3 +68,15 @@ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
7368
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
7469
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
7570
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
71+
72+
<!-- GITCONTRIBUTOR_START -->
73+
74+
## Contributors
75+
76+
|[<img src="https://avatars.githubusercontent.com/u/156269?v=4" width="100px;"/><br/><sub><b>fengmk2</b></sub>](https://github.com/fengmk2)<br/>|[<img src="https://avatars.githubusercontent.com/u/360661?v=4" width="100px;"/><br/><sub><b>popomore</b></sub>](https://github.com/popomore)<br/>|[<img src="https://avatars.githubusercontent.com/u/99484857?v=4" width="100px;"/><br/><sub><b>npmmirror</b></sub>](https://github.com/npmmirror)<br/>|
77+
| :---: | :---: | :---: |
78+
79+
80+
This project follows the git-contributor [spec](https://github.com/xudafeng/git-contributor), auto updated at `Thu Jun 15 2023 08:58:20 GMT+0800`.
81+
82+
<!-- GITCONTRIBUTOR_END -->

package.json

Lines changed: 9 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,9 @@
44
"description": "Transfer git url to web url",
55
"main": "index.js",
66
"scripts": {
7-
"test": "mocha test/*.test.js"
7+
"test": "mocha test/*.test.js",
8+
"ci": "c8 -r text -r lcov npm test",
9+
"contributor": "git-contributor"
810
},
911
"config": {
1012
"blanket": {
@@ -16,16 +18,11 @@
1618
},
1719
"dependencies": {},
1820
"devDependencies": {
19-
"autod": "*",
20-
"blanket": "*",
21-
"contributors": "*",
22-
"cov": "*",
23-
"coveralls": "*",
21+
"c8": "^8.0.0",
22+
"git-contributor": "^2.1.5",
2423
"jshint": "*",
25-
"mocha": "2",
26-
"mocha-lcov-reporter": "*",
27-
"should": "3.3.1",
28-
"travis-cov": "*"
24+
"mocha": "^10.2.0",
25+
"should": "3.3.1"
2926
},
3027
"homepage": "https://github.com/repo-utils/giturl",
3128
"repository": {
@@ -34,8 +31,7 @@
3431
"web": "https://github.com/repo-utils/giturl"
3532
},
3633
"bugs": {
37-
"url": "https://github.com/repo-utils/giturl/issues",
38-
"email": "fengmk2@gmail.com"
34+
"url": "https://github.com/repo-utils/giturl/issues"
3935
},
4036
"keywords": [
4137
"giturl",
@@ -47,6 +43,6 @@
4743
"engines": {
4844
"node": ">= 0.10.0"
4945
},
50-
"author": "fengmk2 <fengmk2@gmail.com> (http://fengmk2.github.com)",
46+
"author": "fengmk2 <fengmk2@gmail.com> (http://github.com/fengmk2)",
5147
"license": "MIT"
5248
}

0 commit comments

Comments
 (0)