Skip to content

Commit

Permalink
Added github workflow to exec. unit tests (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbjorlig committed Feb 12, 2021
1 parent beb4387 commit 68a401b
Show file tree
Hide file tree
Showing 6 changed files with 13,818 additions and 885 deletions.
21 changes: 21 additions & 0 deletions .github/unit-tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: unit tests

on: [push, pull_request]

jobs:
unitTest:
runs-on: ubuntu-latest

strategy:
matrix:
node-version: [12.x, 14.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- uses: bahmutov/npm-install@v1
- run: npm test
- run: npm run coverage
5 changes: 5 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,3 +29,8 @@ node_modules
# Release artifacts
.lone/
dist/

# Test output
.nyc_output
# Mac OS files on folder create/delete
.DS_Store
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ test/
*.log
coverage/
.eslintrc
.nyc_output
**/*.DS_Store
13 changes: 0 additions & 13 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit 68a401b

Please sign in to comment.