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

Include build/test workflow for GitHub Actions [Exercise 05] #49

Merged
merged 8 commits into from
Dec 5, 2023
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
9 changes: 8 additions & 1 deletion .github/workflows/build-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,11 @@ jobs:
cd nodejs-intro
npm install
npm run format
npm run lint
npm run lint
- name: Module 3 - node-dependencies
run: |
cd node-dependencies
npm install
npm run format
npm run lint
npm test
10 changes: 10 additions & 0 deletions node-dependencies/.editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
root = true

[*]
indent_style = space
indent_size = 2
end_of_line = auto
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
quote_type = single
25 changes: 25 additions & 0 deletions node-dependencies/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"env": {
"commonjs": true,
"es2021": true,
"node": true
},
"extends": "eslint:recommended",
"parser": "@babel/eslint-parser",
"parserOptions": {
"ecmaVersion": "latest",
"requireConfigFile": false,
"babelOptions": {
"parserOpts": {
"plugins": ["topLevelAwait"]
}
}
},
"rules": {
"no-console": "off",
"no-undef": "off",
"no-unused-vars": "off",
"no-shadow": "off",
"require-await": "error"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [
"api",
"database"
"javascript",
"nodejs",
"azure",
"mslearning",
"microsoft-learn",
"tutorial"
],
"author": "",
"license": "ISC"
"license": "MIT"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,14 @@
"scripts": {
"test": "playwright test"
},
"keywords": [],
"keywords": [
"javascript",
"nodejs",
"azure",
"mslearning",
"microsoft-learn",
"tutorial"
],
"author": "",
"license": "MIT",
"dependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
exports.addressParser = function parseOrder(order) {
const match = order.match(/order:\s(?<order>\w+\s\w+).*address:\s(?<address>\w+\s\w+\s\w+).*payment info:\s(?<payment>\w+)/)
return match.groups;
}
const match = order.match(
/order:\s(?<order>\w+\s\w+).*address:\s(?<address>\w+\s\w+\s\w+).*payment info:\s(?<payment>\w+)/,
);
return match.groups;
};
Loading
Loading