The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v1.
For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
nodejs.yml
is 3 years old, and the dependencies need updating. Typescript 5.1 introduced a breaking change that affects the actions workflow that was set to node v12, making tests fail. https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-1.html#breaking-changes Warnings were still being thrown fromactions/checkout@v2
andactions/node@v1
:so upgraded those to latest major version.