Update pre-push to run e2e test

This commit is contained in:
Dan Mindru 2019-09-05 09:59:50 +02:00
parent 6da4c42c84
commit e51465734e
2 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ jobs:
test:
name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
node_version: [9, 10, 11, 12]
@ -18,10 +18,10 @@ jobs:
uses: actions/setup-node@v1
with:
node_version: ${{ matrix.node_version }}
- name: npm install & test
run: |
npm install
npm test
npm run e2e-test
env:
CI: true

View File

@ -73,7 +73,7 @@
],
"husky": {
"hooks": {
"pre-push": "npm test",
"pre-push": "npm run e2e-test",
"pre-commit": "npm run lint && ./node_modules/.bin/pretty-quick --staged --pattern ./**/*.js"
}
}