Skip to content
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

CI: make actions locally testable #407

Open
Calychas opened this issue Nov 22, 2023 · 1 comment
Open

CI: make actions locally testable #407

Calychas opened this issue Nov 22, 2023 · 1 comment

Comments

@Calychas
Copy link
Collaborator

Calychas commented Nov 22, 2023

One can use https://github.com/nektos/act to test workflows locally, but the may need some tweaking to make them work.

See also https://www.redhat.com/en/blog/testing-github-actions-locally for additional improvements (e.g. mocking gh api)

Motivation:
Currently to test gh releases I needed to create a fork https://github.com/kraina-ai/srai-sandbox, which is a bit obrzydliwe (eng. disgusting). Other actions need commits to remote repo and can take quite some time to get a response.

@Calychas Calychas changed the title CI: make actions locally testable (act) CI: make actions locally testable Nov 22, 2023
@Calychas
Copy link
Collaborator Author

See also how the playground approach is done in https://github.com/process-analytics/GitHub-Actions-playground

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant