-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from hidetak/main
Additional basic testing
- Loading branch information
Showing
9 changed files
with
5,457 additions
and
442 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
name: node-red-node-wot test | ||
|
||
on: | ||
pull_request: | ||
types: [opened, reopened, synchronize, ready_for_review] | ||
|
||
jobs: | ||
Test: | ||
name: Run test codes | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
working-directory: node-red-node-wot | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Install and cache nodejs | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: "20" | ||
cache: "npm" | ||
cache-dependency-path: "**/package-lock.json" | ||
- name: Install packages | ||
run: npm install | ||
- name: Show coverage | ||
run: npm test -- --bail --maxWorkers=100% --watchAll=false --coverage |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,6 +2,4 @@ node_modules | |
.idea/ | ||
.vscode/settings.json | ||
.DS_Store | ||
/dist | ||
/memo | ||
|
||
dist |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
// Launch configurations: see https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", | ||
"configurations": [ | ||
|
||
{ | ||
"type": "node", | ||
"cwd":"${workspaceFolder}/node-red-node-wot/", | ||
"request": "launch", | ||
"name": "Run Test", | ||
"program": "${workspaceFolder}/node-red-node-wot/node_modules/mocha/bin/_mocha", | ||
"args": ["--require", "ts-node/register", "--extension", "ts", "--exit"] | ||
} | ||
] | ||
} |
Oops, something went wrong.