Can I run github actions on my laptop? #25711
-
Is there a way to run the github action on my laptop? Instead of having to commit and push to test out the workflows, is there a way I can test it out locally? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
After you create an action, It could not run directly in your local laptop. You need to test it out in workflows. https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-a-javascript-action#testing-out-your-action-in-a-workflow And a workflow need to has a trigger event, on: push is an easier way. There are some Development tools for GitHub Actions, they can help you create actions more quickly: https://help.github.com/en/actions/automating-your-workflow-with-github-actions/development-tools-for-github-actions |
Beta Was this translation helpful? Give feedback.
-
The solutions does not answer the question: There is a tool to locally test actions: Try this out. |
Beta Was this translation helpful? Give feedback.
-
If you want to test/debug an individual action (not the entire workflow) you can use github-action-ts-run-api JS package. But it’s mainly for actions authors who want to write integration tests for their actions and run them both locally and on CI. |
Beta Was this translation helpful? Give feedback.
After you create an action, It could not run directly in your local laptop. You need to test it out in workflows. https://help.github.com/en/actions/automating-your-workflow-with-github-actions/creating-a-javascript-action#testing-out-your-action-in-a-workflow
And a workflow need to has a trigger event, on: push is an easier way.
There are some Development tools for GitHub Actions, they can help you create actions more quickly: https://help.github.com/en/actions/automating-your-workflow-with-github-actions/development-tools-for-github-actions