Skip to content

Commit

Permalink
test: run test on github ci (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
fengmk2 committed Jun 15, 2023
1 parent 3ba325d commit 89c8cba
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 73 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/nodejs.yml
@@ -0,0 +1,16 @@
name: CI

on:
push:
branches: [ master ]

pull_request:
branches: [ master ]

jobs:
Job:
name: Node.js
uses: node-modules/github-actions/.github/workflows/node-test.yml@master
with:
os: 'ubuntu-latest'
version: '14, 16, 18, 20'
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -12,4 +12,5 @@ logs
results

node_modules
npm-debug.log
npm-debug.log
coverage
10 changes: 0 additions & 10 deletions .travis.yml

This file was deleted.

5 changes: 0 additions & 5 deletions AUTHORS

This file was deleted.

35 changes: 0 additions & 35 deletions Makefile

This file was deleted.

25 changes: 16 additions & 9 deletions README.md
@@ -1,11 +1,6 @@
giturl
=======
# giturl

[![Build Status](https://secure.travis-ci.org/repo-utils/giturl.png)](http://travis-ci.org/repo-utils/giturl)

[![Coverage Status](https://coveralls.io/repos/repo-utils/giturl/badge.png)](https://coveralls.io/r/repo-utils/giturl)

[![Dependency Status](https://gemnasium.com/repo-utils/giturl.png)](https://gemnasium.com/repo-utils/giturl)
[![CI](https://github.com/repo-utils/giturl/actions/workflows/nodejs.yml/badge.svg)](https://github.com/repo-utils/giturl/actions/workflows/nodejs.yml)

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

Expand All @@ -16,7 +11,7 @@ Transfer git url to web url.
## Install

```bash
$ npm install giturl
npm install giturl
```

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

(The MIT License)

Copyright (c) 2014 fengmk2 <fengmk2@gmail.com> and other contributors
Copyright (c) 2014 fengmk2 &lt;<fengmk2@gmail.com>&gt; and other contributors

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand All @@ -73,3 +68,15 @@ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

<!-- GITCONTRIBUTOR_START -->

## Contributors

|[<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/>|
| :---: | :---: | :---: |


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`.

<!-- GITCONTRIBUTOR_END -->
22 changes: 9 additions & 13 deletions package.json
Expand Up @@ -4,7 +4,9 @@
"description": "Transfer git url to web url",
"main": "index.js",
"scripts": {
"test": "mocha test/*.test.js"
"test": "mocha test/*.test.js",
"ci": "c8 -r text -r lcov npm test",
"contributor": "git-contributor"
},
"config": {
"blanket": {
Expand All @@ -16,16 +18,11 @@
},
"dependencies": {},
"devDependencies": {
"autod": "*",
"blanket": "*",
"contributors": "*",
"cov": "*",
"coveralls": "*",
"c8": "^8.0.0",
"git-contributor": "^2.1.5",
"jshint": "*",
"mocha": "2",
"mocha-lcov-reporter": "*",
"should": "3.3.1",
"travis-cov": "*"
"mocha": "^10.2.0",
"should": "3.3.1"
},
"homepage": "https://github.com/repo-utils/giturl",
"repository": {
Expand All @@ -34,8 +31,7 @@
"web": "https://github.com/repo-utils/giturl"
},
"bugs": {
"url": "https://github.com/repo-utils/giturl/issues",
"email": "fengmk2@gmail.com"
"url": "https://github.com/repo-utils/giturl/issues"
},
"keywords": [
"giturl",
Expand All @@ -47,6 +43,6 @@
"engines": {
"node": ">= 0.10.0"
},
"author": "fengmk2 <fengmk2@gmail.com> (http://fengmk2.github.com)",
"author": "fengmk2 <fengmk2@gmail.com> (http://github.com/fengmk2)",
"license": "MIT"
}

0 comments on commit 89c8cba

Please sign in to comment.