Commit graph

7 commits

Author SHA1 Message Date
Ricky C
d3f9a3b3fb feat: Add support for TypeScript scripts
Both of the .cts and .mts flavors. Because this action is written in CommonJS both have to compile to CommonJS in order to execute.

As it is TypeScript there's already an expectation of some slowness, so I went with the approach of running the script via the node VM module. While a cleaner approach, it has the caveat that root level await in the script doesn't work. That should become available if https://github.com/actions/github-script/issues/457 is completed.
2024-07-05 19:31:23 -07:00
Ricky C
ccf1a8e117 chore: Make test run names able to handle refactoring
`fn.name` was introduced in Node 0.10.0, so this improves test suite maintainability without changing the minimum node version.

Also added a test that for certain proves that Promises can be awaited.
2024-07-05 19:05:15 -07:00
Luke Tomlinson
8445ca871a Fix overriding request options from @actions/github 2022-09-30 15:15:18 -04:00
Luke Tomlinson
3faaff918c PR feedback 2022-09-23 16:16:31 -04:00
Luke Tomlinson
660d907517 refactor and add tests for retry options 2022-09-23 11:45:39 -04:00
Jonathan Clem
3037861304
Add ESLint and Prettier 2020-05-18 11:28:54 -04:00
Jonathan Clem
38e3ffe4c6
Add tests for the AsyncFunction 2020-02-27 17:27:49 -05:00