-
actions-mocks
Discontinued Mock and test helpers for GitHub Actions - Archived, please use another testing tools
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
From my point of view, unit testing of Actions doesn't have any differences from testing any other JavaScript code. In most of the examples of Actions available on the GitHub Marketplace authors don't care about writing testable code. But nothing prevents you from extracting abstractions and following The Dependency Inversion Principle which will allow you to easily mock dependencies (such as @actions/core , @actions/github, @actions/exec packages).
You can use any of JavaScript testing frameworks and mocking libraries. I can advise taking a look at actions-mocks package.
I'm not going to duplicate the documentation for the github-action-ts-run-api package here, but I want to mention how it can be used.