Skip to content

Commit

Permalink
feat: add CLI tests workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
rix0rrr committed Jan 30, 2025
1 parent 684da2f commit 0b06e56
Show file tree
Hide file tree
Showing 6 changed files with 438 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes

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

123 changes: 123 additions & 0 deletions .github/workflows/build-and-integ.yml

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

1 change: 1 addition & 0 deletions .gitignore

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

1 change: 1 addition & 0 deletions .projen/files.json

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

22 changes: 22 additions & 0 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,17 @@ import { ESLINT_RULES } from './projenrc/eslint';
import { JsiiBuild } from './projenrc/jsii';
import { BundleCli } from './projenrc/bundle';
import { Stability } from 'projen/lib/cdk';
import { CdkCliIntegTestsWorkflow } from './projenrc/cdk-cli-integ-tests';

// 5.7 sometimes gives a weird error in `ts-jest` in `@aws-cdk/cli-lib-alpha`
// https://github.com/microsoft/TypeScript/issues/60159
const TYPESCRIPT_VERSION = "5.6";

const APPROVAL_ENVIRONMENT = 'integ-approval';
const TEST_ENVIRONMENT = 'run-tests';
const TEST_RUNNER = 'aws-cdk_ubuntu-latest_4-core';


/**
* Projen depends on TypeScript-eslint 7 by default.
*
Expand Down Expand Up @@ -827,4 +833,20 @@ new pj.YamlFile(repo, ".github/dependabot.yml", {
committed: true,
});

new CdkCliIntegTestsWorkflow(repo, {
approvalEnvironment: APPROVAL_ENVIRONMENT,
buildRunsOn: workflowRunsOn[0],
testEnvironment: TEST_ENVIRONMENT,
testRunsOn: TEST_RUNNER,
localPackages: [
cloudAssemblySchema.name,
cloudFormationDiff.name,
cdkAssets.name,
cli.name,
cliLib.name,
cdkAliasPackage.name,
],
});


repo.synth();
Loading

0 comments on commit 0b06e56

Please sign in to comment.