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

Increase workflow speed #777

Merged

Conversation

carstingaxion
Copy link
Collaborator

@carstingaxion carstingaxion commented Aug 12, 2024

Description of the Change

This PR makes some smaller, but more general, changes to multiple workflows with the goal to have workflows only running when needed and to increase the overall time the workflows need to run.

It does:

  • Restrict the workflow runs to relevant file types and folders
  • Add different caches to avoid downloading the same files multiple times, during one workflow run
  • update all actions to last stable versions

Closes #

How to test the Change

Changelog Entry

Changed Workflow run conditions for better developer experience

Credits

Props @carstingaxion

Checklist:

  • I agree to follow this project's Code of Conduct.
  • I have updated the documentation accordingly.
  • I have added tests to cover my change.
  • All new and existing tests pass.

Copy link

what-the-diff bot commented Aug 12, 2024

PR Summary

  • Update to GitHub Actions Workflow Files

    • Updated the workflow files for coding standards, dependency review, end-to-end tests, jest tests, php unit tests, playground preview, SonarCloud, and wordpress plugin guidelines.
    • These updates focus on better file tracking, better workflow conditions, upgrades to action setup, and efficient caching mechanisms.
  • Enhanced the File Path Tracking

    • Paths for essential files and folders in different programming languages like JavaScript and PHP have been added. This makes sure our workflows accurately track and act on changes in code based on these file locations.
  • Prevent Workflow Run on Forks

    • For our dependency review workflow, an additional condition has been added. This prevents the workflow from running on unofficial copies (forks) of our repository, ensuring that only authorized changes to our code trigger the workflows.
  • Upgraded Tools

    • Updated action setups to version 4. This enhancement is aimed at providing key capabilities to support workflows, which include setting up the required environment and tools.
  • Improve Efficiency with Caching

    • Caching has been added for Node Package Manager (npm). A cache is a component that stores data so that future requests to the data can be served faster, which improves the efficiency and speed of our workflows.

@carstingaxion carstingaxion changed the title Feature/increase workflow speed Increase workflow speed Aug 23, 2024
@carstingaxion
Copy link
Collaborator Author

The one workflow, that is failing here, is failing for reasons not related to that PR. This has already been fixed in #792 and can be ignored for this PR.

@carstingaxion carstingaxion marked this pull request as ready for review August 25, 2024 21:28
@mauteri mauteri merged commit bb4dea5 into GatherPress:main Aug 25, 2024
11 of 12 checks passed
carstingaxion added a commit to carstingaxion/gatherpress that referenced this pull request Aug 26, 2024
mauteri added a commit that referenced this pull request Aug 26, 2024
Remove push from workflow triggers (which was set by accident in #777)
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

Successfully merging this pull request may close these issues.

2 participants