See: - https://github.com/actions/javascript-action/tree/main/__tests__ for how tests look like - https://github.com/actions/javascript-action/tree/main#validate-the-action for how to write a workflow that validated an action in the same repo.
See: