Skip to content

Commit

Permalink
Add ability to run tests on VS Code Insiders (#1094)
Browse files Browse the repository at this point in the history
* Add ability to run tests on VS Code Insiders

Add a new docker compose file that lets us run the tests on VS Code
insiders so we can catch issues before they show up for most users in
the mainline VS Code release.

* Use Swift 6.0 instead of main
  • Loading branch information
plemarquand authored Sep 27, 2024
1 parent 36f60a5 commit 39beed5
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .vscode-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ module.exports = defineConfig({
{
label: "integrationTests",
files: ["out/test/suite/**/*.test.js"],
version: "stable",
version: process.env["VSCODE_VERSION"] ?? "stable",
workspaceFolder: "./assets/test",
mocha: {
ui: "tdd",
Expand All @@ -45,7 +45,7 @@ module.exports = defineConfig({
{
label: "unitTests",
files: ["out/test/unit-tests/**/*.test.js"],
version: "stable",
version: process.env["VSCODE_VERSION"] ?? "stable",
mocha: {
ui: "tdd",
color: true,
Expand Down
15 changes: 15 additions & 0 deletions docker/docker-compose.2004.60.insiders.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
services:

runtime-setup:
image: vscode-swift:22.04-6.0-insiders
build:
args:
base_image: "swiftlang/swift:nightly-6.0-jammy"

test:
image: vscode-swift:22.04-6.0-insiders
environment:
- VSCODE_VERSION=insiders

shell:
image: vscode-swift:22.04-6.0-insiders

0 comments on commit 39beed5

Please sign in to comment.