Skip to content

Commit

Permalink
feat: set CHECKPOINT_DISABLE as global env for all tasks
Browse files Browse the repository at this point in the history
  • Loading branch information
ansgarm committed Jan 12, 2022
1 parent 9a419d0 commit 2960621
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ export class CdktfProviderProject extends cdk.JsiiProject {
},
});

this.tasks.addEnvironment("CHECKPOINT_DISABLE", "1");

new CdktfConfig(this, {
terraformProvider,
providerName,
Expand Down
1 change: 1 addition & 0 deletions test/__snapshots__/index.test.ts.snap

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@ test("synths with minimal options", () => {
test("build runs without telemetry", () => {
const snapshot = synthSnapshot(getProject());

expect(snapshot[".github/workflows/build.yml"]).toContain(
`CHECKPOINT_DISABLE: "1"`
expect(snapshot[".projen/tasks.json"]).toHaveProperty(
"env.CHECKPOINT_DISABLE",
"1"
);
});

0 comments on commit 2960621

Please sign in to comment.