LoginSignup
3
1

More than 1 year has passed since last update.

GitHub ActionsでLintをかける時は1ツールずつ実行しよう

Last updated at Posted at 2021-05-28

最近のGitHub ActionsはPR時にLint系が指摘を出すのを拾ってコメントしてくれる機能があります。
Screen Shot 2021-05-28 at 11.22.22.png
はじめのうちは表示されていたのですがあるタイミングで表示されなくなり、Betaだから消えたのかな?と思っていました。
結論、こういった指摘を拾ってくれそうなツールをまとめて実行せずに1つずつ実行するようにすれば再び表示されるようになりました。

🙅‍♀️ NGパターン

- name: Lint Check
  run: npx tsc && npx eslint --ext .ts,.tsx .

🙆‍♀️ OKパターン

- name: TypeScript Type Check
  run: npx tsc
- name: ESLint Check
  run: npx eslint --ext .ts,.tsx .
3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1