Skip to content

Commit

Permalink
Still fighting bugs only seen in GHA.
Browse files Browse the repository at this point in the history
  • Loading branch information
manchicken committed Jun 30, 2023
1 parent 99c23ec commit c709605
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions __tests__/lib/input-to-registry-document.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ contacts: |
}
expect(validate_v2.errors).toBeNull()
expect(inputs).toMatchSnapshot()
expect(Array.isArray(inputs.links)).toBeTruthy()
expect(inputs.links.length).toEqual(1)
})

test('#inputsToRegistryDocument() - normal input', async () => {
Expand Down Expand Up @@ -209,6 +211,8 @@ contacts: |
expect(validate_v2_1(inputs)).toStrictEqual(true)
expect(validate_v2_1.errors).toBeNull()
expect(inputs).toMatchSnapshot()
expect(Array.isArray(inputs.links)).toBeTruthy()
expect(inputs.links.length).toEqual(4)
})

test('#inputsToRegistryDocument() - normal input', async () => {
Expand Down
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,7 @@ const inputsToRegistryDocument = async () => {
`Convenience field ${fieldName} for version ${version} has input: ${input}`,
)
configs = mapField(fieldName, version)(input, configs)
core.debug({ [`convenience_field:${fieldName}`]: configs })
}

return configs
Expand Down
1 change: 1 addition & 0 deletions lib/input-to-registry-document.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ const inputsToRegistryDocument = async () => {
`Convenience field ${fieldName} for version ${version} has input: ${input}`,
)
configs = mapField(fieldName, version)(input, configs)
core.debug({ [`convenience_field:${fieldName}`]: configs })
}

return configs
Expand Down

0 comments on commit c709605

Please sign in to comment.