From e968251f6272af033aa054f3c3be5e237eb3d04d Mon Sep 17 00:00:00 2001 From: Mike Heft Date: Tue, 2 Jul 2024 12:11:09 -0600 Subject: [PATCH] Add action for rubocop checks on each push --- .github/workflows/rubocop.yaml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/rubocop.yaml diff --git a/.github/workflows/rubocop.yaml b/.github/workflows/rubocop.yaml new file mode 100644 index 0000000..9f96c32 --- /dev/null +++ b/.github/workflows/rubocop.yaml @@ -0,0 +1,23 @@ +name: RuboCop + +on: [push] + +jobs: + rubocop: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: 3.3.0 + + - name: Install dependencies + run: | + gem install bundler + bundle install --jobs 4 --retry 3 + + - name: Run RuboCop + run: bundle exec rubocop