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
feat(ci): add eslint to reviewdog #12713
Conversation
Thanks for opening a PR! 💯
Howto
More infoPlease take a moment to read through the Magma project's
If this is your first Magma PR, also consider reading
|
df8de2a
to
1cb99c0
Compare
f055998
to
bbe1798
Compare
bbe1798
to
d2056c1
Compare
Signed-off-by: Fritz Lehnert <13189449+Neudrino@users.noreply.github.com>
Signed-off-by: Fritz Lehnert <13189449+Neudrino@users.noreply.github.com>
d2056c1
to
3e864ca
Compare
@@ -117,7 +117,7 @@ | |||
"prettier": "^2.0.5", | |||
"puppeteer": "5.5.0", | |||
"react-hot-loader": "^4.8.0", | |||
"react-test-renderer": "^17.0.2", | |||
"react-test-renderer": "^16.9.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, we should use a test renderer that fits to our react version.
@@ -113,6 +116,26 @@ jobs: | |||
# Ignore DL3005-"Do not use apt-get upgrade or dist-upgrade" | |||
hadolint_ignore: DL3005 | |||
|
|||
eslint: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does that mean we are now running eslint
twice once as part of the nms workflow and ones in the reviewdog workflow?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That is correct. However, I do not see an issue with that, as it will be run in parallel and thus not prolong the CI execution.
I would see this as first step in part of a larger consolidation of the CI, in this part of linters and formatters.
Anyhow, for now, it brings the advantage that people opening a PR see in the PR conversation, what issues the Linter shows, instead of only having those hidden in the run logs of the action.
* feat(ci): add eslint to reviewdog Signed-off-by: Fritz Lehnert <13189449+Neudrino@users.noreply.github.com> * feat(ci): pin react-test-renderer version Signed-off-by: Fritz Lehnert <13189449+Neudrino@users.noreply.github.com>
Summary
eslint
is used in the JavaScript universe and specifically for the NMS frontend in magma.This integrates the linter with reviewdog for a visual feedback in Github.
The change to the yarn package install is necessary, because otherwise the npm install step fails in CI.
yarn.lock
automatically updated by runningyarn
.Test Plan