How to test Github Actions? #9383
-
PRs that change workflows are difficult to test. Are there good/easy solutions to test these PRs so that it's not necessary to merge them blindly? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Solution 1Many actions rely on the trigger Example for PR Labeler:
with:
In the actions section of the PR you will now see both, the action from our dev-branch and the action of this branch. Important Remember to revert this change before merging it. Solution 2Many seem to appreciate the open source project Act. You can either manually install it or for Mac users it is also available via HomeBrew. |
Beta Was this translation helpful? Give feedback.
Solution 1
Many actions rely on the trigger
pull_request_target
.For testing run the action on every pull request.
Example for PR Labeler:
Replace:
with:
In the actions section of the PR you will now see both, the action from our dev-branch and the action of this branch.
Important
Remember to revert this change before merging it.
Solution 2
Many seem to appreciate the open source project Act. You can either manually install it or for Mac users it is also available via HomeBrew.