Skip to content

Chore/76 improve pipelines caching and overall execution #124

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

Merged
merged 1 commit into from
Oct 7, 2024

Conversation

winqus
Copy link
Owner

@winqus winqus commented Oct 7, 2024

Related Issues

Closes #76

Added Features / Changes:

  • Improved workflow runtime (~1 min if package-lock.json wasn't changed, ~3 mins otherwise).
  • Better caching settings (now installs npm packages if cache hit explicitly), workflows also run on develop (default) branch, to create a cache that can be used by sub-branches (e.g. feature/**).
  • Set max run limit to 15 minutes (just in case, unlikely to be reached in near future).
  • Set ubuntu version to 20.04 to be closer to the development version and to prevent unwanted changes if newer version is released (when using ubuntu-latest).
  • Added concurrency settings (single same workflow execution at a time per branch) to make sure only the latest commit is running to not waste workers.

Referenced:

  1. Control the concurrency of workflows and jobs. Run a single job at a time.
  2. gh issue: Dependencies are still installed after cache flag is true
  3. Restrictions for accessing a cache
  4. Example using the cache action

@winqus winqus linked an issue Oct 7, 2024 that may be closed by this pull request
@winqus winqus changed the title Chore / improve pipelines caching and overall execution Chore/76 improve pipelines caching and overall execution Oct 7, 2024
@winqus winqus merged commit 4ed77a0 into develop Oct 7, 2024
@winqus winqus deleted the chore/76-improve-gh-action-pipelines branch October 7, 2024 13:20
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.

Chore/improve GH action pipelines
2 participants