diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml new file mode 100644 index 0000000..ad3860c --- /dev/null +++ b/.github/workflows/nodejs.yml @@ -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' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..a4e1158 --- /dev/null +++ b/.github/workflows/release.yml @@ -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 diff --git a/.gitignore b/.gitignore index dbf42cc..bb986f5 100644 --- a/.gitignore +++ b/.gitignore @@ -15,3 +15,4 @@ npm-debug.log node_modules .DS_Store .idea/ +.nyc_output/ diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 00392ae..0000000 --- a/.travis.yml +++ /dev/null @@ -1,9 +0,0 @@ -sudo: false -language: node_js -node_js: - - '12' - - '10' -script: - - npm run ci -after_script: - - npm i codecov && codecov diff --git a/package.json b/package.json index dd40e83..d44795b 100644 --- a/package.json +++ b/package.json @@ -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", @@ -22,7 +21,6 @@ "js", "java", "object", - "wraper", "class" ], "author": "dead_horse ", @@ -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" } }