build: add GitHub actions to run linters
Add jobs to our GitHub Actions workflow to run our various lint Makefile
targets. The setup-node
action used to run the JavaScript linter contains
problem matchers for eslint that will annotate the files in a pull request if
there are failures.
The Python linting has been left out as I believe it's being included as part of https://github.com/nodejs/node/pull/29474.
See https://github.com/richardlau/node-1/pull/3/files for an example of the annotations for lint-js failures.
We may be able to create problem matchers for the cpplint.py and markdown linters in the future based on https://github.com/actions/toolkit/blob/master/docs/problem-matchers.md.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines