Skip to content

Commit a24944a

Browse files
mads-hartmannroboquat
authored andcommitted
Run pre-commit checks before other validation checks
1 parent 5670a55 commit a24944a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.werft/jobs/build/validate-changes.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@ import { JobConfig } from "./job-config";
44

55
export async function validateChanges(werft: Werft, config: JobConfig) {
66
werft.phase("validate-changes", "validating changes");
7+
// We run pre-commit checks first to avoid potential race conditions with the
8+
// other validation checks.
9+
await preCommitCheck(werft);
710
await Promise.all([
811
branchNameCheck(werft, config),
9-
preCommitCheck(werft),
1012
typecheckWerftJobs(werft),
1113
leewayVet(werft),
1214
]);

0 commit comments

Comments
 (0)