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

Allow fully disabling cache for local workflow testing #667

Closed
davidski opened this issue Dec 5, 2022 · 3 comments · Fixed by #668
Closed

Allow fully disabling cache for local workflow testing #667

davidski opened this issue Dec 5, 2022 · 3 comments · Fixed by #668
Labels
feature a feature request or enhancement help wanted ❤️ we'd love your help!

Comments

@davidski
Copy link
Contributor

davidski commented Dec 5, 2022

Is your feature request related to a problem? Please describe.

The current versions of setup-renv and friends utilize GitHub cache, which is great, but is incompatible with local testing environments such as act. This makes local workflow iteration challenging.

Describe the solution you'd like

An option to disable the cache step completely as opposed to simply cache invalidation.

Describe alternatives you've considered

Forking the action. ;)

Additional context

ACT sets an environment variable (ACT) to TRUE when running locally. This is one generally recommended way of having skipping GitHub-specific steps for local testing.

@gaborcsardi
Copy link
Member

A PR is welcome!

@gaborcsardi gaborcsardi added feature a feature request or enhancement help wanted ❤️ we'd love your help! labels Dec 5, 2022
@davidski
Copy link
Contributor Author

davidski commented Dec 6, 2022

A quick PR has just been created. Happy to take any feedback!

@github-actions
Copy link

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this issue

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 21, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature a feature request or enhancement help wanted ❤️ we'd love your help!
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants