Closed KessaPassa closed 2 years ago
pushしたときに自動的にrubocopが走るようにCIを設定する
関連PR: https://github.com/smptmhr/el-training/pull/7 参考: https://github.com/ruby/setup-ruby#single-job
All checks have passed
github actionsでbundle install時に下記のエラーが発生
Your bundle only supports platforms ["x86_64-darwin-19"] but your local platform is x86_64-linux. Add the current platform to the lockfile with `bundle lock --add-platform x86_64-linux` and try again.
x86_64-linux を追加する必要があるので bundle lock --add-platform x86_64-linux コマンドを実行した
x86_64-linux
bundle lock --add-platform x86_64-linux
また、Unable to find gem rubocop-discourse; is the gem installed? Gem::MissingSpecError というエラーが発生 vendor/**/* にgemがinstallされる関係上、除外することでエラーを取り除く https://qiita.com/pensuke628/items/eadfba5609aa0d4e5097
Unable to find gem rubocop-discourse; is the gem installed? Gem::MissingSpecError
vendor/**/*
@smptmhr CI設定に伴って変わったところあるので、ともにも見て欲しいです
この問題が発生した原因って、 いま作成しているアプリの仕様上なのか、 それとも個々の開発環境によるものなのか、どっちに当たりますか?
やること
pushしたときに自動的にrubocopが走るようにCIを設定する
関連PR: https://github.com/smptmhr/el-training/pull/7 参考: https://github.com/ruby/setup-ruby#single-job
完了条件
All checks have passed
になっているエラーが発生したので修正したこと
github actionsでbundle install時に下記のエラーが発生
x86_64-linux
を追加する必要があるのでbundle lock --add-platform x86_64-linux
コマンドを実行したまた、
Unable to find gem rubocop-discourse; is the gem installed? Gem::MissingSpecError
というエラーが発生vendor/**/*
にgemがinstallされる関係上、除外することでエラーを取り除く https://qiita.com/pensuke628/items/eadfba5609aa0d4e5097