Beraliv / beraliv.dev

Digital garden 🌳🌲
https://blog.beraliv.dev
2 stars 1 forks source link

ci: 🔄 restructure checks #474

Closed Beraliv closed 2 years ago

Beraliv commented 2 years ago

What

  1. ~Split jobs in ci.yml~
  2. ~Merge ci and size, use needs to specify the order of jobs~
  3. Use strategy, matrix to specify packages for future projects
  4. Use github action for setup – node, cache and pnpm configuration
  5. ~Split jobs for node modules size~

Why not

  1. ~Split jobs in ci.yml~
  2. ~Merge ci and size, use needs to specify the order of jobs~

CI time was even worse (checked with stopwatch from push to green checks):

  1. Split jobs for node modules size
    • Before this branch time
    • 0:48 - size/bundle
    • This branch time:
    • 0:30 and 0:25 - for 2 branches
    • 0:05 – report
      • artifact saving and extracting between jobs which will be >20s

Why

  1. Use strategy, matrix to specify packages for future projects
  2. Use github action for setup – node, cache and pnpm configuration
  3. DRY – node and pnpm version, cache paths and files
vercel[bot] commented 2 years ago

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

Name Status Preview Updated
blog2 ✅ Ready (Inspect) Visit Preview Aug 16, 2022 at 0:08AM (UTC)
github-actions[bot] commented 2 years ago

node_modules report 📦

main current branch
323M 322M