Skip to content

Commit e43a81c

Browse files
authored
Merge pull request #1739 from codidact/0valt/ci
Remove matrices from the ci-cd pipeline's Rubocop job
2 parents 5b71da2 + b571453 commit e43a81c

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/ci-cd.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,13 @@ on:
1010

1111
env:
1212
RAILS_ENV: test
13+
RUBY_VERSION: 3.2
1314

1415
jobs:
1516
rubocop:
1617
name: Rubocop checking
1718
runs-on: ubuntu-latest
1819

19-
strategy:
20-
matrix:
21-
ruby_version: [3.1, 3.2]
22-
2320
steps:
2421
- name: Checkout repo
2522
uses: actions/checkout@v3
@@ -30,7 +27,7 @@ jobs:
3027
- name: Setup Ruby
3128
uses: ruby/setup-ruby@v1
3229
with:
33-
ruby-version: ${{ matrix.ruby_version }}
30+
ruby-version: ${{ env.RUBY_VERSION }}
3431
bundler-cache: true
3532
- run: bundle exec rubocop
3633

@@ -106,7 +103,7 @@ jobs:
106103
path: tmp/screenshots
107104
if-no-files-found: ignore
108105
- uses: codecov/codecov-action@v5
109-
if: ${{ matrix.ruby_version == 3.2 && matrix.test_type == 'test' && github.actor != 'dependabot[bot]' }}
106+
if: ${{ matrix.ruby_version == env.RUBY_VERSION && matrix.test_type == 'test' && github.actor != 'dependabot[bot]' }}
110107
with:
111108
directory: coverage
112109
fail_ci_if_error: true

0 commit comments

Comments
 (0)