{"repo":"kiegroup/act-js","free":true,"listed":false,"github":"https://github.com/kiegroup/act-js","clone":"git clone https://github.com/kiegroup/act-js.git","description":"A node.js wrapper for nektos/act to programmatically run your github actions locally","language":"TypeScript","stars":63,"topics":["nodejs","custom-github-actions-workflows","github-actions","testing"],"license":"Apache-2.0","category":"dev-tools","readme_excerpt":"act-js Installs nektos/act and provides access to it as a CLI as well as an API Table of Content - Prerequistes - Configuration - CLI Usage - API Usage - Current working directory and Workflow file - Secrets - Env - Input - Event payload - List workflows - Run a job - Using job id - Using event name - Using event name and job id - Mocking apis during the run - Mocking steps - Run result - Mockapi - Defining a schema - Mock an api - Mock the entire endpoint - Mock an endpoint for specific parameter(s) - Replying with a response - Reply once - Reply N times - Chaining responses - Typescript Support - Example with Mock Github - Limitations - Version Prerequistes act-js depends on docker to run workflows. If you are using macOS, please be sure to follow the steps outlined in Docker Docs for how to install Docker Desktop for Mac. If you are using Windows, please follow steps for installing Docker Desktop on Windows. If you are using Linux, you will need to install Docker Engine. act-js is currently not supported with podman or other container backends (it might work, but it's not guaranteed). Please see nektos/act #303 for updates. Configuration In you first run with act-js as a CLI you will have to configure it. Please refer to nektos/act configuration This does not apply when you are using it as a programmable interface. CLI Usage Use locally with npm scripts Use globally For detailed usage on how you can use act-js please refer to nektos/act API Usage Provides an interface for ","default_branch":null,"files":null,"tree":[],"storefront":"/r/kiegroup","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/kiegroup/act-js/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}