From 7df3db2b6fa0291dfe45e2228ac77f76e92e49de Mon Sep 17 00:00:00 2001 From: "Michael B. Gale" Date: Thu, 12 Mar 2026 17:53:28 +0000 Subject: [PATCH] Add minimal `Step` type --- pr-checks/sync.ts | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/pr-checks/sync.ts b/pr-checks/sync.ts index 5044f4b85..29efeacc8 100755 --- a/pr-checks/sync.ts +++ b/pr-checks/sync.ts @@ -57,6 +57,12 @@ interface Specification extends JobSpecification { collection?: string; } +/** Minimal type to represent steps in Actions workflows. */ +interface Step { + name?: string; + [other: string]: any; +} + /** Represents job specifications. */ interface JobSpecification { /** The display name for the check. */ @@ -67,7 +73,7 @@ interface JobSpecification { env?: Record; /** The workflow steps specific to this check. */ - steps: any[]; + steps: Step[]; installNode?: boolean; installGo?: boolean; @@ -82,7 +88,7 @@ interface LanguageSetup { specProperty: keyof JobSpecification; /** The names of the known inputs which are required for this setup step. */ inputs?: KnownInputName[]; - steps: any[]; + steps: Step[]; } /** Describes partial mappings from known languages to their specific setup information. */ @@ -363,10 +369,10 @@ function generateJobMatrix( */ function getSetupSteps(checkSpecification: JobSpecification): { inputs: Set; - steps: any[]; + steps: Step[]; } { const inputs: Array> = []; - const steps: any[] = []; + const steps: Step[] = []; for (const language of Object.values(KnownLanguage).sort()) { const setupSpec = languageSetups[language]; @@ -426,7 +432,7 @@ function generateJob( const workflowInputs = setupInfo.inputs; // Construct the workflow steps needed for this check. - const steps: any[] = [ + const steps: Step[] = [ { name: "Check out repository", uses: "actions/checkout@v6",