-
Notifications
You must be signed in to change notification settings - Fork 313
Add details about running GitHub actions tests locally #9363
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -150,9 +150,10 @@ find .github/workflows -name "*.yaml" -exec awk '/uses:/{print $2 ","}' {} \; | | |
|
||
## Testing | ||
|
||
Workflows can be locally tested using the [`act` CLI](https://github.com/nektos/act/). | ||
Workflows can be locally tested using the [`act` CLI](https://github.com/nektos/act/). Docker and GiHub CLI need also to be installed. | ||
The [.github/workflows/tests/](./tests) folder contains test scripts and event payloads to locally trigger workflows. | ||
|
||
> [!WARNING] | ||
> Locally running workflows will still query GitHub backend and will update the GitHub project accordingly. | ||
> Pay extra attention to the workflow jobs you trigger to not create development disruption. | ||
> Locally running workflows will still query GitHub backend and will update the GitHub project accordingly. | ||
> For example, running 'tests/add-milestone-to-pull-requests/test-pull-request.sh' locally will add a milestone, on this github repository, to the PR whose ID is written in 'tests/add-milestone-to-pull-requests/payload-pull-request.json' as 'pull_request.number', if it hasn't one already. | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 💭 thought: I would not give a specific test scenario as example as it will increase the extra work maintaining it. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wanted to write a concrete example as it's more meaningful to me but I agree that it's not great for maintenance. |
||
> Pay extra attention to the workflow jobs you trigger to not create development disruption. |
Uh oh!
There was an error while loading. Please reload this page.