From 7adb1cfa923cd378c02c562e7a2b0f327159e976 Mon Sep 17 00:00:00 2001 From: ksss Date: Mon, 17 Jun 2024 22:20:04 +0900 Subject: [PATCH] Run RuboCop on CI --- .github/workflows/rubocop.yml | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .github/workflows/rubocop.yml diff --git a/.github/workflows/rubocop.yml b/.github/workflows/rubocop.yml new file mode 100644 index 000000000..95d9c400b --- /dev/null +++ b/.github/workflows/rubocop.yml @@ -0,0 +1,22 @@ +name: RuboCop + +on: + push: + branches: + - main + pull_request: {} + +jobs: + rubocop: + runs-on: ubuntu-latest + timeout-minutes: 30 + steps: + - uses: actions/checkout@v4 + - uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.3' + bundler-cache: true + - name: 'Install dependencies' + run: 'bundle install' + - name: 'Run RuboCop' + run: 'bundle exec rubocop --format github'