LoginSignup
2
0

More than 3 years have passed since last update.

Github ActionsでRubyとJavaScriptの各診断ツールを実行できるようにして、Siderを解約した

Last updated at Posted at 2020-12-22

2019年4月からSiderの課金方式がリポジトリ数からチームのメンバー数に変わって月額費用が3倍くらいになった頃くらいに、Github Actionsのことを知って、乗り換えれば月の費用が抑えられそうと思いGithub Actionsを作り始め、ようやく先月にSiderを解約できました。

Rubyはexec-ruby-diagnostic、JavaScriptはexec-javascript-diagnosticを作成しました。

exec-ruby-diagnosticを使う場合の設定(RuboCopの場合)は以下です。
Gemfile.lockのバージョンで実行されるので、各ツールが最新にできていなくても問題ありません。

steps:
- uses: actions/checkout@v2
- uses: ruby/setup-ruby@v1
  bundler-cache: true
- uses: steiley/exec-ruby-diagnostic@v1.0.7
  with:
    gem_name: rubocop

exec-javascript-diagnosticを使う場合の設定(stylelintの場合)は以下です。
Rubyと同様でpackage.jsonのバージョンで実行されます。

steps:
- uses: actions/checkout@v2.3.2
- uses: steiley/exec-javascript-diagnostic@v0.0.2
  with:
    package_name: stylelint
    target_path: "app/assets/**/*.sass"
    # optinal(use this when the package name is different from the executable command name)
    execute_command: stylelint

よかったら使ってみて下さい。

2
0
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
2
0