Skip to content

Commit 4939e7f

Browse files
authored
Merge pull request #354 from brownts/feature/unit_test_lint_actions
Add github automated unit testing and linting.
2 parents 23e0a7a + 8564c6e commit 4939e7f

File tree

3 files changed

+45
-20
lines changed

3 files changed

+45
-20
lines changed

.github/workflows/lint.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Lint Project
2+
on:
3+
push:
4+
pull_request:
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v3
11+
12+
- name: Install Node.js
13+
uses: actions/setup-node@v3
14+
with:
15+
node-version: 16.x
16+
17+
- name: Install Module Dependencies
18+
run: npm clean-install --no-optional
19+
20+
- name: Lint Project
21+
run: npx tslint --project tsconfig.json

.github/workflows/unit_test.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Unit Test Project
2+
on:
3+
push:
4+
pull_request:
5+
jobs:
6+
unit_test:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout
10+
uses: actions/checkout@v3
11+
12+
- name: Install Node.js
13+
uses: actions/setup-node@v3
14+
with:
15+
node-version: 16.x
16+
17+
- name: Install Module Dependencies
18+
run: npm clean-install --no-optional
19+
20+
- name: Compile Project
21+
run: npx tsc --project ./
22+
23+
- name: Test Project
24+
run: xvfb-run --auto-servernum node ./out/src/test/runTest.js

.travis.yml

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)