coverallsapp / github-action

Coveralls Github Action
https://coveralls.io
MIT License
467 stars 75 forks source link

Update to Node 20 #201

Closed JoeCohen closed 2 months ago

JoeCohen commented 6 months ago

The GitHub action causes this deprecation warning in Github Actions:

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: coverallsapp/github-action@master. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

dakujem commented 2 months ago

I accidentally found out the issue may be patched by using a fixed version, like coverallsapp/github-action@v2.3.0.

There should be a better way though.
It may be a simple matter of updating the latest or master tags, if provided.

Minoru commented 2 months ago

@dakujem is spot-on: years ago, Coveralls' README suggested to use coverallsapp/github-action@master, so I did. Then Coveralls switched the default branch to "main", and stopped updating "master". (This hasn't been communicated anywhere I could find: there's no changelog; the commit log and README don't mention it either.) Now "master" finally got old enough to trigger warnings from GitHub Actions.

afinetooth commented 2 months ago

Apologies for the confusion and inconvenience here.

In order to replicate the "latest version" feature of @master for v1.x of our Action, we created a new main branch for v2.x. So @main should keep you up-to-date with the latest 2.x release.

We still have many users on v1.x, so we leveraged the migration from master to main for this opportunity.

dakujem commented 2 months ago

It really did not occur to me to use main instead of master... But thanks, now i can at least get rid of the @2.3.0 fixed version.

afinetooth commented 2 months ago

Totally understand. I believe it's in the release notes, but we should have broadcast the change more widely.

We don't require email addresses to register, since we're all OAuth via your SCM (GitHub, Gitlab or Bitbucket), so we don't have a way to send product updates, besides to subscribers.

I'm going to close this for housekeeping. Just re-open if necessary. Thanks.