Adding the DigitalOcean example to CI runs
MODIFY
digitalocean-ts-loadbalanced-droplets/package.json
digitalocean-ts-loadbalanced-droplets/package.json
{
"name": "webserver-linode",
"version": "0.1.0",
- "main": "index.js",
"dependencies": {
"@pulumi/pulumi": "latest",
"@pulumi/digitalocean": "latest"

ADD
digitalocean-ts-loadbalanced-droplets/tsconfig.json
+{
+ "compilerOptions": {
+ "outDir": "bin",
+ "target": "es6",
+ "module": "commonjs",
+ "moduleResolution": "node",
+ "sourceMap": true,
+ "experimentalDecorators": true,
+ "pretty": true,
+ "noFallthroughCasesInSwitch": true,
+ "noImplicitAny": true,
+ "noImplicitReturns": true,
+ "forceConsistentCasingInFileNames": true,
+ "strictNullChecks": true
+ },
+ "files": [
+ "index.ts"
+ ]
+}

MODIFY
misc/test/examples_test.go
misc/test/examples_test.go
@@ -582,6 +582,16 @@ func TestExamples(t *testing.T) {
},
}),
+ base.With(integration.ProgramTestOptions{
+ Dir: path.Join(cwd, "..", "..", "digitalocean-ts-loadbalanced-droplets"),
+ Config: map[string]string{},
+ ExtraRuntimeValidation: func(t *testing.T, stack integration.RuntimeValidationStackInfo) {
+ assertHTTPResult(t, stack.Outputs["endpoint"].(string), func(body string) bool {
+ return assert.Contains(t, body, "Welcome to nginx!")
+ })
+ },
+ }),
+
base.With(integration.ProgramTestOptions{
Dir: path.Join(cwd, "..", "..", "linode-js-webserver"),
Config: map[string]string{},

Adding the DigitalOcean example to CI runs