Update pre-push to run e2e test
This commit is contained in:
parent
6da4c42c84
commit
e51465734e
|
|
@ -6,7 +6,7 @@ jobs:
|
||||||
test:
|
test:
|
||||||
name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }}
|
name: Test on node ${{ matrix.node_version }} and ${{ matrix.os }}
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
node_version: [9, 10, 11, 12]
|
node_version: [9, 10, 11, 12]
|
||||||
|
|
@ -18,10 +18,10 @@ jobs:
|
||||||
uses: actions/setup-node@v1
|
uses: actions/setup-node@v1
|
||||||
with:
|
with:
|
||||||
node_version: ${{ matrix.node_version }}
|
node_version: ${{ matrix.node_version }}
|
||||||
|
|
||||||
- name: npm install & test
|
- name: npm install & test
|
||||||
run: |
|
run: |
|
||||||
npm install
|
npm install
|
||||||
npm test
|
npm run e2e-test
|
||||||
env:
|
env:
|
||||||
CI: true
|
CI: true
|
||||||
|
|
|
||||||
|
|
@ -73,7 +73,7 @@
|
||||||
],
|
],
|
||||||
"husky": {
|
"husky": {
|
||||||
"hooks": {
|
"hooks": {
|
||||||
"pre-push": "npm test",
|
"pre-push": "npm run e2e-test",
|
||||||
"pre-commit": "npm run lint && ./node_modules/.bin/pretty-quick --staged --pattern ./**/*.js"
|
"pre-commit": "npm run lint && ./node_modules/.bin/pretty-quick --staged --pattern ./**/*.js"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue