Skip to content

Commit

Permalink
chore: can skip tests during build by setting SKIP_TESTS=1 (#3161)
Browse files Browse the repository at this point in the history
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.

To skip tests, set `SKIP_TESTS=1`

---------

Signed-off-by: Momo Kornher <[email protected]>
Signed-off-by: github-actions <[email protected]>
Co-authored-by: github-actions <[email protected]>
  • Loading branch information
mrgrain and github-actions authored Jan 21, 2025
1 parent f660fe0 commit 156343a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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.

9 changes: 4 additions & 5 deletions .projenrc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,11 +95,10 @@ project.testTask.prependSpawn(installHelm);

project.compileTask.spawn(schemas);

// so that it works on windows as well
// default projen uses $(npm pack) which fails
project.packageTask.reset();
project.packageTask.exec('mkdir -p dist/js');
project.packageTask.exec('npm pack --pack-destination dist/js');
// 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)\"");


addIntegTests(project);
Expand Down

0 comments on commit 156343a

Please sign in to comment.