Skip to content

Commit

Permalink
phet-io-sim-specific doesn't need to compare apis for all sims (too l…
Browse files Browse the repository at this point in the history
…ong), #1350

Signed-off-by: Michael Kauzmann <michael.kauzmann@colorado.edu>
  • Loading branch information
zepumph committed Apr 30, 2024
1 parent 6f9cbeb commit af908a1
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions js/scripts/hook-pre-commit-task.js
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,12 @@ const repo = getArg( 'repo' );
//
const phetioAPIOK = await ( async () => {

// If running git hooks in phet-io-sim-specific, it isn't worth regenerating the API for every single stable sim.
// Instead, rely on the hooks from the repos where the api changes come from.
if ( repo === 'phet-io-sim-specific' ) {
return true;
}

const getCacheKey = repo => `phet-io-api-compare#${repo}`;

// Test this repo and all phet-io sims that have it as a dependency. For instance, changing sun would test
Expand Down

0 comments on commit af908a1

Please sign in to comment.