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: use a matrix to simplify test-node in CircleCI #11298

Merged
merged 4 commits into from
Apr 14, 2021

Conversation

charpeni
Copy link
Contributor

@charpeni charpeni commented Apr 14, 2021

Summary

We can simplify the current configuration of CircleCI by creating a test-node job that will take a node-version as a parameter. That way, we'll be able to easily add/remove node versions from the workflow with a matrix.

Test plan

  • Should test node 10
  • Should test node 12
  • Should test node 14
  • Should test node 15

@charpeni charpeni marked this pull request as ready for review April 14, 2021 15:46
Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

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

yay! less config is always good 😀

install-npm: false
- node/install-packages: *install
- run:
command: yarn test-ci
Copy link
Member

Choose a reason for hiding this comment

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

this has a different command (collects coverage) - can we get that in (or just keep v14 separate)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oops, I missed that. Good point, I'll create two jobs and make partial runs explicit.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done! We now have two matrices:

  • test-node-x
  • test-node-partial-x

Copy link
Member

@SimenB SimenB left a comment

Choose a reason for hiding this comment

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

thanks!

@SimenB SimenB merged commit 246e7fa into jestjs:master Apr 14, 2021
@charpeni charpeni deleted the simplify-circleci-config branch April 21, 2021 21:40
@github-actions
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants