Skip to content

Commit

Permalink
Add Github workflows for unit tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
garg3133 committed Oct 28, 2022
1 parent c5863d4 commit 17c7956
Show file tree
Hide file tree
Showing 3 changed files with 45 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/ubuntu-latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: ubuntu-latest CLI

on:
push:
branches: [ main ]
pull_request:
branches: [ main, v* ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '12.x'
- name: Install dependencies
run: npm install
- run: npm run test:unit
22 changes: 22 additions & 0 deletions .github/workflows/windows-latest.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: windows-latest CLI

on:
push:
branches: [ main ]
pull_request:
branches: [ main, v* ]

jobs:
build:

runs-on: windows-latest

steps:
- uses: actions/checkout@v3
- name: Use Node.js
uses: actions/setup-node@v3
with:
node-version: '12.x'
- name: Install dependencies
run: npm install
- run: npm run test:unit
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
"build": "tsc",
"dev": "tsc && node dev.js",
"prepublishOnly": "tsc --outDir dist",
"test:unit": "npx nightwatch tests/unit_tests",
"eslint": "eslint src"
},
"author": "",
Expand Down

0 comments on commit 17c7956

Please sign in to comment.