Skip to content

Commit

Permalink
Merge pull request #3 from hidetak/main
Browse files Browse the repository at this point in the history
Additional basic testing
  • Loading branch information
egekorkan authored Feb 29, 2024
2 parents 5e5dbe2 + 08a07c3 commit a85fbbc
Show file tree
Hide file tree
Showing 9 changed files with 5,457 additions and 442 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/test.yml
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
4 changes: 1 addition & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,4 @@ node_modules
.idea/
.vscode/settings.json
.DS_Store
/dist
/memo

dist
14 changes: 14 additions & 0 deletions .vscode/launch.json
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"]
}
]
}
Loading

0 comments on commit a85fbbc

Please sign in to comment.