Skip to content

Commit

Permalink
chore: separate liner to a new step
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosgz committed Jan 24, 2024
1 parent d39bf27 commit 7ab6ee7
Showing 1 changed file with 15 additions and 6 deletions.
21 changes: 15 additions & 6 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ on:
pull_request:

jobs:
linter:
runs-on: ubuntu-latest
name: "Rubocop"
env:
BUNDLE_GEMFILE: ci/Gemfile.rails-6.1
steps:
- uses: actions/checkout@v4
- uses: ruby/setup-ruby@v1
with:
ruby-version: "3.0"
bundler-cache: true
- name: Run linter
run: bundle exec rubocop
ruby-2:
runs-on: ubuntu-latest
strategy:
Expand All @@ -16,7 +29,7 @@ jobs:
- "2.7"
gemfile:
- ci/Gemfile.rails-5.2
name: ${{ matrix.ruby }}-${{ matrix.gemfile }}
name: "Rspec: ruby-${{ matrix.ruby }} and ${{ matrix.gemfile }}"
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
steps:
Expand All @@ -25,8 +38,6 @@ jobs:
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run linter
run: bundle exec rubocop
- name: Run tests
run: bundle exec rspec
ruby-3:
Expand All @@ -44,7 +55,7 @@ jobs:
- ci/Gemfile.rails-6.1
- ci/Gemfile.rails-7.0
- ci/Gemfile.rails-7.1
name: ${{ matrix.ruby }}-${{ matrix.gemfile }}
name: "Rspec: ruby-${{ matrix.ruby }} and ${{ matrix.gemfile }}"
env:
BUNDLE_GEMFILE: ${{ matrix.gemfile }}
steps:
Expand All @@ -53,7 +64,5 @@ jobs:
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Run linter
run: bundle exec rubocop
- name: Run tests
run: bundle exec rspec

0 comments on commit 7ab6ee7

Please sign in to comment.