Skip to content

Commit

Permalink
Adding CI via github actions, clean (#89)
Browse files Browse the repository at this point in the history
* alias npm test, and add first version of gh workflow, no other changes!

* adding pull_request to the gh action
  • Loading branch information
esromneb committed Nov 19, 2020
1 parent 989a995 commit 1061514
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/workflows/nodejs.yml
@@ -0,0 +1,23 @@
name: Node.js CI

on: [push, pull_request]

jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [8.x, 9.x, 10.x, 11.x, 12.x, 13.x, 14.x]

steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
env:
CI: true
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -8,7 +8,8 @@
"build:production": "webpack --production && webpack --production --minify",
"test:production": "karma start ./karma.conf.js",
"benchmark": "karma start ./karma.benchmark.conf.js",
"dev": "webpack --development && karma start ./karma.conf.js --development"
"dev": "webpack --development && karma start ./karma.conf.js --development",
"test": "npm run test:production"
},
"keywords": [
"A*",
Expand Down

0 comments on commit 1061514

Please sign in to comment.