Skip to content

feat: use cache for node js github actions#3316

Merged
Dzeranov merged 5 commits intodevelopfrom
dnechay/2803-ga
May 5, 2025
Merged

feat: use cache for node js github actions#3316
Dzeranov merged 5 commits intodevelopfrom
dnechay/2803-ga

Conversation

@dnechay
Copy link
Copy Markdown
Collaborator

@dnechay dnechay commented May 5, 2025

Issue tracking

Part of #2803

Context behind the change

Right now GA wastes a lot of time on installing Node.js packages in monorepo because no caching is used. Changing setup-node action to use default caching strategy for yarn, which is based on yarn.lock file.

Also added branches patterns to pr and push triggers because there is no need to run actions for every pull request.

Important

After adding cache for yarn dependencies are fetched using it, but yarn has another step - Linking dependencies- which is very slow for the version we use and workspaces. In order to address it - we might want to update yarn

How has this been tested?

  • check that actions run, use cache and that PRs can pass protection checks

Release plan

Simply merge

Potential risks; What to monitor; Rollback plan

Should be none

@vercel
Copy link
Copy Markdown

vercel bot commented May 5, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
human-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 5, 2025 2:03pm
human-dashboard-frontend 🛑 Canceled (Inspect) May 5, 2025 2:03pm
staking-dashboard ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 5, 2025 2:03pm
2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
faucet-frontend ⬜️ Ignored (Inspect) Visit Preview May 5, 2025 2:03pm
faucet-server ⬜️ Ignored (Inspect) Visit Preview May 5, 2025 2:03pm

@vercel vercel bot temporarily deployed to Preview – faucet-frontend May 5, 2025 13:29 Inactive
@vercel vercel bot temporarily deployed to Preview – faucet-server May 5, 2025 13:30 Inactive
@vercel vercel bot temporarily deployed to Preview – human-app May 5, 2025 13:30 Inactive
@vercel vercel bot temporarily deployed to Preview – human-dashboard-frontend May 5, 2025 13:30 Inactive
@vercel vercel bot temporarily deployed to Preview – staking-dashboard May 5, 2025 13:30 Inactive
@vercel vercel bot temporarily deployed to Preview – faucet-frontend May 5, 2025 13:34 Inactive
@vercel vercel bot temporarily deployed to Preview – faucet-server May 5, 2025 13:34 Inactive
@vercel vercel bot temporarily deployed to Preview – human-app May 5, 2025 13:34 Inactive
@vercel vercel bot temporarily deployed to Preview – human-dashboard-frontend May 5, 2025 13:34 Inactive
@vercel vercel bot temporarily deployed to Preview – staking-dashboard May 5, 2025 13:35 Inactive
@Dzeranov Dzeranov merged commit bf3b70d into develop May 5, 2025
24 checks passed
@Dzeranov Dzeranov moved this from In Review to Done in Core-tech - 2025 May 5, 2025
@Dzeranov Dzeranov deleted the dnechay/2803-ga branch May 5, 2025 16:01
@Dzeranov Dzeranov mentioned this pull request May 5, 2025
15 tasks
flopez7 pushed a commit that referenced this pull request May 21, 2025
* feat: use cache for node js github actions

* feat: run js lint only when js app changes

* chore: trigger ga

* chore: trigger ga [2]

* fix: ci lint config
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

2 participants