Update pre-push to run e2e test
This commit is contained in:
parent
6da4c42c84
commit
e51465734e
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue