Tools for developing Github Actions.
TODO
The test stubs are an incomplete suite of sinon stubs for common libraries used in javascript actions.
For example, a stub for the @actions/core npm package is provided as CoreStub. You can pass in an instance of this stub object to your tests and use it as a stub or spy. For example:
importtestfrom'node:test'importassertfrom'node:assert'import{CoreStub}from'@bricker/actions-dev-tools';importrunActionfrom'./action/main.js'test('successful action output',async(t)=>{constcoreStub=newCoreStub();awaitrunAction({core: coreStub});assert(coreStub.setOutput.calledWith('result','success'));});TODO
TODO
TODO
TODO
TODO
TODO
TODO