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

ci: updated github actions ci workflow #70

Merged
merged 1 commit into from
Feb 10, 2025
Merged

Conversation

Phillip9587
Copy link
Contributor

The same has been done for body-parser expressjs/body-parser#546 and router pillarjs/router#143

I noticed that the current CI workflow in this repository could benefit from some updates. Specifically:

  1. Node.js Installation in the Matrix Test Run:

    • Currently, the workflow uses nvm to install Node.js versions.
    • It might be worth considering switching to the official actions/setup-node action. This action can leverage cached Node.js versions from the runner, which could improve efficiency and speed up the CI pipeline.
  2. Deprecation of Artifact Actions v3:

    • The actions/upload-artifact@v3 and actions/download-artifact@v3 actions are being deprecated as of November 30, 2024 (GitHub Deprecation Notice).
    • These actions should be updated to their latest versions to ensure continued functionality in the CI workflow.
  3. The Coverage setup could also be optimized:

    • Currently, the workflow uses the coverallsapp/github-action@master which points to v1 of this action. This v1 action uses node16 as runtime which is deprecated.
  4. Minimum token permissions for the GITHUB_TOKEN:

Copy link
Contributor

@bjohansebas bjohansebas left a comment

Choose a reason for hiding this comment

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

I would suggest making the linter a separate job, as it is done in express.

https://github.com/expressjs/express/blob/52ed64606fc1f5114d90265a66275a18f2d773af/.github/workflows/ci.yml#L23-L41

@wesleytodd
Copy link
Member

I would like to merge this before we do the release. @bjohansebas you didn't make your review "request changes", does that mean you are not blocking on that comment? If so, I would like to merge this as is and we can revisit the lint job in a followup.

@Phillip9587
Copy link
Contributor Author

@wesleytodd I can make the change now if you want me to?

@bjohansebas
Copy link
Contributor

Yep, it's not a comment that blocks this PR

@wesleytodd
Copy link
Member

Sorry, I saw the notification for the body-parser repo and thought it was for this. If you want to make it now that's fine, but I am not super concerned with landing it and I would like to release this now. So maybe we just merge this as is since it has been reviewed and approved and we can land that after.

@wesleytodd wesleytodd merged commit f84baf2 into pillarjs:master Feb 10, 2025
10 checks passed
@wesleytodd wesleytodd mentioned this pull request Feb 10, 2025
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.

3 participants