ci: add exit flag for mocha e2e env

This commit is contained in:
4gray committed 2020-12-29 20:17:29 +01:00
1 parent 7b42a170dd
commit dd737c3f58
2 files changed
+3 -16

No files matched your search

+1 -14
View File
@@ -3,19 +3,6 @@ name: Build and release
on: [push]
jobs:
test:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Run headless test
uses: GabrielBB/xvfb-action@v1
with:
working-directory: ./ #optional
run: npm run e2e
build:
runs-on: ubuntu-latest
@@ -28,7 +15,7 @@ jobs:
- run: npm install
- run: npm test
- run: sudo apt-get install xvfb
#- run: xvfb-run --auto-servernum npm run e2e
- run: xvfb-run --auto-servernum npm run e2e
- run: npm run build:prod
env:
CI: true
+2 -2
View File
@@ -35,7 +35,7 @@
"electron:build": "npm run build:prod && electron-builder build",
"test": "jest",
"test:watch": "jest --watch",
"e2e": "npm run build:prod && cross-env TS_NODE_PROJECT='e2e/tsconfig.e2e.json' mocha e2e/**/*.ts --config ./.mocharc.json",
"e2e": "npm run build:prod && cross-env TS_NODE_PROJECT='e2e/tsconfig.e2e.json' mocha e2e/**/*.ts --config ./.mocharc.json --exit",
"e2e:watch": "npm run e2e -- --watch",
"version": "conventional-changelog -i CHANGELOG.md -p angular -s -r 0 && git add CHANGELOG.md",
"lint": "ng lint"
@@ -144,4 +144,4 @@
"lcov"
]
}
}
}