Testing

The Testing ActionBlock provides tools to enable a developer writing a GitHub Action to quickly and easily simulate how a new version of the Action will behave on any repo.

ActionBlocks does not require that the testing repos have the action installed, or any actions installed. Additionally, the testing repo may belong to an organization that doesn’t yet have access to the Actions beta.

When running the tests, ActionBlocks will clone the testing repos and overlay a simulated main.workflow file that includes references to a locally-developed GitHub Action. ActionBlocks will then invoke the action by triggering the event using the act tool on your testing environment. Finally, all results will be available back in the ActionBlocks.io testing plan.

The local execution environment used github.com/nektos/act. This is a great tool that has done a lot to help make it easier to run actions locally.

  • Executing Tests
  • Testing Architecture
  • Testing Repos
  • Testing Workflows