diff options
author | Ryan Cumming <[email protected]> | 2019-06-29 21:56:46 +0100 |
---|---|---|
committer | Ryan Cumming <[email protected]> | 2019-06-29 22:12:42 +0100 |
commit | 60ba253753732080c90e97d2d34f43b71856a7c4 (patch) | |
tree | e1153f2fb7ce9a35ee9e13cb420beff298af6e43 /editors | |
parent | 27df89f47d5f0a6e8e62d517d98dda854efabc34 (diff) |
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.
Diffstat (limited to 'editors')
-rw-r--r-- | editors/code/.prettierignore | 2 | ||||
-rw-r--r-- | editors/code/package.json | 2 |
2 files changed, 3 insertions, 1 deletions
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 @@ | |||
1 | node_modules/ | ||
2 | .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 @@ | |||
25 | "lint": "tslint --project .", | 25 | "lint": "tslint --project .", |
26 | "test": "node node_modules/vscode/bin/test", | 26 | "test": "node node_modules/vscode/bin/test", |
27 | "prettier": "prettier **/*.{json,ts}", | 27 | "prettier": "prettier **/*.{json,ts}", |
28 | "travis": "npm run compile && npm run lint && npm run prettier -- --list-different" | 28 | "travis": "npm run compile && npm run test && npm run lint && npm run prettier -- --list-different" |
29 | }, | 29 | }, |
30 | "prettier": { | 30 | "prettier": { |
31 | "tabWidth": 4, | 31 | "tabWidth": 4, |