-
Notifications
You must be signed in to change notification settings - Fork 5.7k
fix plugins TS setup and tests, update workflow #4962
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
Conversation
✅ Deploy Preview for react-native ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
cortinico
left a comment
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.
LGTM
| - name: Run remark-codeblock-language-as-title plugin checks | ||
| working-directory: plugins/remark-codeblock-language-as-title | ||
| run: yarn tsc | ||
|
|
||
| - name: Run remark-lint-no-dead-urls plugin checks | ||
| working-directory: plugins/remark-lint-no-dead-urls | ||
| run: yarn tsc && yarn test | ||
|
|
||
| - name: Run remark-snackplayer plugin checks | ||
| working-directory: plugins/remark-snackplayer | ||
| run: yarn tsc && yarn test |
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.
nit: ideally we should have a script in the workspace package.json that takes care of tihs, rather than having to explicitely call yarn tsc and yarn test from the GH 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.
Good idea, will follow up on that!
Why
Tried to run
lintcommand inside one of plugins and spotted that the setup is broken and outputs errors.Refs:
How
Replace unresolved TS config for React Native apps with manually defined one for Node + DOM. Fix incorrect paths in tests imports, migrate
remark-lint-no-dead-urlstots-jest, so it can parse correctly the plugin file. Add missingdata-snack-device-appearanceattribute in Snack plugin tape output.I have also added the plugin checks to the CI pre-merge workflow to make sure we catch any issues with plugins earlier in the future.
Test plan
I have run
yarn lintandyarn testin all plugin files, and made sure that all commands are not erroring out, and tests are passing.