Skip to content

Commit 97effb9

Browse files
committed
Stabilize CI
- Increase test timeout to 10 seconds (it was often being exceeded on macOS). We should address the root cause at a later date (tests are downloading something, and downloading takes a while) - Don't fail the CI if uploading to coveralls fails (the coveralls API is currently down due to a DNS problem) Signed-off-by: David Thompson <davthomp@redhat.com>
1 parent c5a2324 commit 97effb9

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.github/workflows/CI.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ jobs:
7474
uses: coverallsapp/github-action@c7885c00cb7ec0b8f9f5ff3f53cddb980f7a4412 # v2.2.0
7575
with:
7676
github-token: ${{ secrets.GITHUB_TOKEN }}
77+
continue-on-error: true
7778

7879
- name: Publish
7980
if: ${{ success() && runner.os == 'Linux' && github.event_name == 'push' && github.ref == 'refs/heads/main'}}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -69,9 +69,9 @@
6969
"clean": "rimraf out/server && rimraf lib",
7070
"compile": "tsc -p .",
7171
"watch": "tsc --watch -p .",
72-
"test": "mocha --require ts-node/register --timeout 5000 --ui bdd ./test/*.test.ts",
73-
"coverage": "nyc mocha --require ts-node/register --timeout 5000 --require source-map-support/register --recursive --ui bdd ./test/*.test.ts",
74-
"coveralls": "nyc --reporter=lcov --reporter=text mocha --timeout 5000 --require ts-node/register --require source-map-support/register --recursive --ui bdd ./test/*.test.ts",
72+
"test": "mocha --require ts-node/register --timeout 10000 --ui bdd ./test/*.test.ts",
73+
"coverage": "nyc mocha --require ts-node/register --timeout 10000 --require source-map-support/register --recursive --ui bdd ./test/*.test.ts",
74+
"coveralls": "nyc --reporter=lcov --reporter=text mocha --timeout 10000 --require ts-node/register --require source-map-support/register --recursive --ui bdd ./test/*.test.ts",
7575
"lint": "eslint --max-warnings 0 -c .eslintrc.js --ext .ts src test",
7676
"lint-ci": "eslint --max-warnings 0 -c .eslintrc.js -f @microsoft/eslint-formatter-sarif -o eslint-result.sarif --ext .ts src test",
7777
"prettier-fix": "npm run prettier --write .",

0 commit comments

Comments
 (0)