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): upgrade ci for node 16 #142

Merged
merged 7 commits into from
Oct 13, 2022
Merged

chore(ci): upgrade ci for node 16 #142

merged 7 commits into from
Oct 13, 2022

Conversation

rwaskiewicz
Copy link
Member

@rwaskiewicz rwaskiewicz commented Oct 12, 2022

Pull request checklist

Please check if your PR fulfills the following requirements:

  • Docs have been reviewed and added / updated if needed (for bug fixes / features)
  • Build (npm run build) was run locally and any changes were pushed
  • Tests (npm test) were run locally and passed
  • Prettier (npm run prettier) was run locally and passed

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Our CI process for this repository is quite old.
So old in fact, that it runs Node 12.
This is a blocker for upgrading/running CI on automatically created PRs such as #140, which rely on a newer version of Node.

GitHub Issue Number: N/A

What is the new behavior?

The primary change here is running on Node 16 over Node 12.

However, several upgrades were made while I was in the pipeline:

  • update ci to run on every push to main, in addition to on every pull
    request. this helps bring us into parity with the functionality of
    stencil core at the time of this writing (9be2e09)
  • remove the unnecessary matrix with unused stencil versions (51b13d1)
  • derive the node version from volta (2126692) (as opposed to a hard code)
  • split out the install, build and test commands for better observability into failures (ac8c36b)
  • add prettier check (1f9186e)

Does this introduce a breaking change?

  • Yes
  • No

Testing

I tailed the logs to verify

  • we were using the correct node version
  • each new step ran

Other information

  • I'll need to force push/fiddle with the repo settings since the names of the expected CI steps have changed here

update ci to run on every push to main, in addition to on every pull
request. this helps bring us into parity with the functionality of
stencil core at the time of this writing
this commit updates the run matrix to use node 16 instead of node 12.
the latter is about to be deprecated by github actions, and we develop
on node 16 today.
since the matrix for runtimes was a matrix of 1x1, remove it in favor of
using setup-node. the latest version of the action can pull directly
from volta, which is what we'll do
check out the code using actions/checkout, prior to running setup-node.
this also upgrades actions/checkout from v1 to v3
this commit simply splits the existing install, build and tests commands
into separate steps
@rwaskiewicz rwaskiewicz changed the title Rwaskiewicz/port ci chore(ci): upgrade ci for node 16 Oct 12, 2022
@rwaskiewicz rwaskiewicz marked this pull request as ready for review October 12, 2022 21:57
@rwaskiewicz rwaskiewicz requested a review from a team as a code owner October 12, 2022 21:57
Copy link
Member

@tanner-reits tanner-reits left a comment

Choose a reason for hiding this comment

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

LGTM!

@tanner-reits tanner-reits removed their assignment Oct 13, 2022
Copy link
Member

@alicewriteswrongs alicewriteswrongs left a comment

Choose a reason for hiding this comment

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

looks good to me

@rwaskiewicz
Copy link
Member Author

Force merging since we're changing up CI

@rwaskiewicz rwaskiewicz merged commit 96d6b81 into main Oct 13, 2022
@rwaskiewicz rwaskiewicz deleted the rwaskiewicz/port-ci branch October 13, 2022 16:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants