Skip to content

Commit

Permalink
CI: run Rubocop in separate job
Browse files Browse the repository at this point in the history
  • Loading branch information
orien committed Feb 17, 2024
1 parent dcb982c commit 4581499
Showing 1 changed file with 16 additions and 27 deletions.
43 changes: 16 additions & 27 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,40 +1,29 @@

name: build

on:
- push
- pull_request

on: [push, pull_request]
jobs:

test:

name: Test (Ruby ${{ matrix.ruby }})

runs-on: ubuntu-latest

strategy:
matrix:
ruby:
- '2.3'
- '2.4'
- '2.5'
- '2.6'
- '2.7'
- '3.0'
- '3.1'
- '3.2'
- '3.3'

ruby: ['3.3', '3.2', '3.1', '3.0', '2.7', '2.6', '2.5', '2.4', '2.3']
steps:

- uses: actions/checkout@v2

- uses: actions/checkout@v4
- name: Set up Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true

- name: Test
run: bundle exec rake --trace
- name: RSpec
run: bundle exec rake spec --trace
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: '3.3'
bundler-cache: true
- name: Rubocop
run: bundle exec rake rubocop --trace

0 comments on commit 4581499

Please sign in to comment.