websight-io / starter

Sample project built on top of the Websight CMS
https://www.websight.io
Apache License 2.0
56 stars 7 forks source link

Fix maven cache in CI #197

Closed malaskowski closed 11 months ago

malaskowski commented 11 months ago

Description

Fix caching management during GH Actions builds.

Motivation and Context

Some caches takes up to 4 GB, because they contain old SNAPSHOTS. Additionally, node_module folders managed by Maven plugin are not cached.

Screenshots (if appropriate)

image

Types of changes

Checklist:

malaskowski commented 11 months ago

CI build times before cache optimisation (total ~27 min):

image

After (total ~17 min):

image
malaskowski commented 11 months ago

Cache artifacts size after optimisation (total 340 MB vs 4GB before optimisation):

image
github-actions[bot] commented 11 months ago

✅ Visual tests status

No visual changes detected.

Name Link
Commit c2b467e72c89342efcb2ec07a3a17b1c74820640
Logs https://github.com/websight-io/starter/actions/runs/6546140283