Skip to content

Commit 68a401b

Browse files
authored
Added github workflow to exec. unit tests (#144)
1 parent beb4387 commit 68a401b

File tree

6 files changed

+13818
-885
lines changed

6 files changed

+13818
-885
lines changed

Diff for: .github/unit-tests.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: unit tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
unitTest:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
node-version: [12.x, 14.x]
12+
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Use Node.js ${{ matrix.node-version }}
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: ${{ matrix.node-version }}
19+
- uses: bahmutov/npm-install@v1
20+
- run: npm test
21+
- run: npm run coverage

Diff for: .gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,8 @@ node_modules
2929
# Release artifacts
3030
.lone/
3131
dist/
32+
33+
# Test output
34+
.nyc_output
35+
# Mac OS files on folder create/delete
36+
.DS_Store

Diff for: .npmignore

+2
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@ test/
1212
*.log
1313
coverage/
1414
.eslintrc
15+
.nyc_output
16+
**/*.DS_Store

Diff for: .travis.yml

-13
This file was deleted.

0 commit comments

Comments
 (0)