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

chore(ci): split ci jobs #610

Merged
merged 1 commit into from
Oct 7, 2021
Merged

chore(ci): split ci jobs #610

merged 1 commit into from
Oct 7, 2021

Conversation

deini
Copy link
Member

@deini deini commented Oct 6, 2021

First pass, this brings down the workflow from 7-10min, to 3-5min (hot/cold cache).

  • Split npm ci script into multiple scripts
  • Split CI jobs
  • Cache node_modules + <package>/node_modules
  • Cache .next dir for docs.

@deini deini force-pushed the ci branch 20 times, most recently from 041b2db to 2faddb6 Compare October 7, 2021 17:55
exit 1
fi

- save_cache:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Custom cache since circle's node orb doesn't fully work with workspaces.


- run:
name: yarn install
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bringing back the custom yarn.lock check since --forzen-lockfile doesn't error out on workspaces.

steps:
- pre-setup
- attach-built-icons
- restore_cache:
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds cache to next.js build.

@deini deini changed the title wip chore(ci): split ci jobs Oct 7, 2021
@deini deini marked this pull request as ready for review October 7, 2021 18:45
@deini deini requested review from a team as code owners October 7, 2021 18:45
"ci": "lerna run ci --stream",
"ci:typeCheck": "lerna run typeCheck --stream",
"ci:test": "lerna run test --stream -- --maxWorkers=2 --coverage",
"ci:build": "lerna run build --stream",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🍹 can remove

@deini deini merged commit 604e1df into bigcommerce:master Oct 7, 2021
@deini deini deleted the ci branch October 7, 2021 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants