diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e971f40..8beb937 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -10,6 +10,21 @@ name: build on: push jobs: + lint: + runs-on: ubuntu-latest + + steps: + - name: Check out repository code + uses: actions/checkout@v4 + + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '3.4' + bundler-cache: true + + - name: Lint code for consistent style + run: bundle exec rubocop -f github test: runs-on: ubuntu-20.04 strategy: @@ -48,8 +63,5 @@ jobs: with: ruby-version: ${{ matrix.ruby-version }} bundler-cache: true - - name: Run rubocop - run: bundle exec rubocop - if: ${{ matrix.ruby-version == '3.3' }} - name: Run tests run: bundle exec rspec