Update pre-push to run e2e test

This commit is contained in:
Dan Mindru 2019-09-05 09:59:50 +02:00 committed by Dan Mindru
parent c9ea61e365
commit c362647959
2 changed files with 4 additions and 4 deletions

View File

@ -18,13 +18,13 @@ jobs:
- name: Use Node.js ${{ matrix.node_version }} - name: Use Node.js ${{ matrix.node_version }}
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 -v npm -v
node -v node -v
npm install --unsafe-perm npm install
npm test npm run e2e-test
env: env:
CI: true CI: true

View File

@ -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"
} }
} }