Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update CI and fix tests #77

Merged
merged 1 commit into from
Sep 8, 2018
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
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,14 @@
"prepublishOnly": "node ./prepublish.js",
"lint": "eslint ./ test/",
"mocha": "mocha -R spec test/*.test.js",
"pretest": "node ./prepublish.js",
"test": "npm run cover",
"cover": "nyc --reporter=lcov mocha test/*.js && nyc report",
"test-no-cover": "mocha test/*.js",
"prettier": "prettier --write *.js test/*.js"
"prettier": "prettier --write *.js test/*.js",
"system-test": "echo no system tests 😱",
"samples-test": "echo no sample tests 😱",
"docs": "echo no docs 🤷‍♂️"
},
"dependencies": {
"globby": "^8.0.0",
Expand Down
3 changes: 3 additions & 0 deletions samples/.eslintrc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
rules:
no-console: off
19 changes: 19 additions & 0 deletions samples/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"description": "Samples for the nodejs-proto-files npm module.",
"license": "Apache-2.0",
"author": "Google LLC",
"engines": {
"node": ">=8"
},
"repository": "googleapis/nodejs-proto-files",
"private": true,
"scripts": {
"test": "mocha system-test"
},
"dependencies": {
"google-proto-files": "*"
},
"devDependencies": {
"mocha": "^5.2.0"
}
}
17 changes: 17 additions & 0 deletions samples/quickstart.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*!
* Copyright 2018 Google LCC. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

console.warn(`no samples available 👎`);
17 changes: 17 additions & 0 deletions samples/system-test/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/*!
* Copyright 2018 Google LCC. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/

console.warn(`no sample tests available 👎`);