mirror of
https://github.com/deepseek-ai/deepseek-harness.git
synced 2026-08-29 04:26:38 +00:00
fix(cic): narrow workflow.on before Object.keys in python-release assertion
Guard workflow.on with isRecord before Object.keys to satisfy TS2769.
This commit is contained in:
@@ -288,6 +288,7 @@ describe('Python release workflows', () => {
|
||||
}
|
||||
|
||||
expect(dispatch.inputs.publish).toMatchObject({ type: 'boolean', default: false })
|
||||
if (!isRecord(workflow.on)) throw new TypeError('python-release workflow must define on')
|
||||
expect(Object.keys(workflow.on)).toEqual(['workflow_dispatch'])
|
||||
expect(build).toMatchObject({
|
||||
if: "github.event_name == 'workflow_dispatch'",
|
||||
|
||||
Reference in New Issue
Block a user