Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: CI

on:
push:
branches: [ master ]

pull_request:
branches: [ master ]

workflow_dispatch: {}

jobs:
Job:
name: Node.js
uses: node-modules/github-actions/.github/workflows/node-test.yml@master
with:
os: 'ubuntu-latest'
version: '12, 14, 16, 18, 20'
15 changes: 15 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: Release

on:
push:
branches: [ master ]

jobs:
release:
name: Node.js
uses: node-modules/github-actions/.github/workflows/node-release.yml@master
secrets:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GIT_TOKEN: ${{ secrets.GIT_TOKEN }}
with:
checkTest: false
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ npm-debug.log
node_modules
.DS_Store
.idea/
.nyc_output/
9 changes: 0 additions & 9 deletions .travis.yml

This file was deleted.

13 changes: 5 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
],
"scripts": {
"test": "mocha -R spec -t 3000 -r should test/*.test.js",
"test-cov": "istanbul cover _mocha -- -t 3000 -r should test/*.test.js",
"test-cov": "nyc mocha -- -t 3000 -r should test/*.test.js",
"ci": "npm run jshint && npm run test-cov",
"jshint": "jshint .",
"autod": "autod -w --prefix '~' -t test -e examples"
"jshint": "jshint lib index.js"
},
"repository": {
"type": "git",
Expand All @@ -22,7 +21,6 @@
"js",
"java",
"object",
"wraper",
"class"
],
"author": "dead_horse <dead_horse@qq.com>",
Expand All @@ -33,12 +31,11 @@
"homepage": "https://github.com/node-modules/js-to-java",
"dependencies": {},
"devDependencies": {
"autod": "*",
"contributors": "*",
"cov": "*",
"istanbul": "*",
"jshint": "2",
"mocha": "*",
"should": "10.0.0",
"jshint": "2"
"nyc": "^15.1.0",
"should": "10.0.0"
}
}