From 60ba253753732080c90e97d2d34f43b71856a7c4 Mon Sep 17 00:00:00 2001 From: Ryan Cumming Date: Sun, 30 Jun 2019 06:56:46 +1000 Subject: Run VS Code tests on CI This is actually much faster than I expected; it takes about 13 seconds to download VS Code and run the unit tests. This means the VS Code tests are still significantly faster than the Rust ones. If this ends up being unreliable we can always remove it later or move it to a separate optional job. We also need to ignore the `.vscode-test` directory when running `prettier` or it will get upset about some temporary JSON files VS Code creates. --- editors/code/.prettierignore | 2 ++ editors/code/package.json | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 editors/code/.prettierignore (limited to 'editors') diff --git a/editors/code/.prettierignore b/editors/code/.prettierignore new file mode 100644 index 000000000..3798f2d1f --- /dev/null +++ b/editors/code/.prettierignore @@ -0,0 +1,2 @@ +node_modules/ +.vscode-test/ diff --git a/editors/code/package.json b/editors/code/package.json index 6e2dd0494..52972031d 100644 --- a/editors/code/package.json +++ b/editors/code/package.json @@ -25,7 +25,7 @@ "lint": "tslint --project .", "test": "node node_modules/vscode/bin/test", "prettier": "prettier **/*.{json,ts}", - "travis": "npm run compile && npm run lint && npm run prettier -- --list-different" + "travis": "npm run compile && npm run test && npm run lint && npm run prettier -- --list-different" }, "prettier": { "tabWidth": 4, -- cgit v1.2.3