From 1d1b6111c5917a3ab6eb22a1840b2d6f44db57bb Mon Sep 17 00:00:00 2001 From: Aotokitsuruya Date: Tue, 7 Nov 2023 21:32:15 +0800 Subject: [PATCH] Update GitHub Action to run rubocop --- .github/workflows/main.yaml | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 382418e..65c81af 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -7,6 +7,18 @@ on: pull_request: jobs: + rubocop: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.2' + bundler-cache: true + - name: Rubocop + run: bundle exec rubocop + rspec: runs-on: ubuntu-latest strategy: @@ -29,5 +41,5 @@ jobs: with: ruby-version: ${{ matrix.ruby }} bundler-cache: true - - name: Run RSpec + - name: RSpec run: bundle exec rspec