Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: can skip tests during build by setting SKIP_TESTS=1 #5235

Merged
merged 2 commits into from
Jan 30, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .projen/tasks.json

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

5 changes: 5 additions & 0 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ for (const lang of ['typescript', 'python', 'java']) {
project.gitignore.exclude(output);
}

// Allow skipping tests in build based on an env variable
// This is only used by the package integrity check running outside the repo
// While this check needs to replicate the release, it does not need to run tests
project.testTask.addCondition("node -e \"if (process.env.SKIP_TESTS==='1') process.exit(1)\"");

// Projen task to update references to old versions of cdk8s-plus
const versionTaskObject = project.addTask('rotate');
versionTaskObject.exec('ts-node projenrc/rotate.ts ' + SPEC_VERSION);
Expand Down
Loading