Skip to content

Commit 59f43b4

Browse files
authored
Merge pull request #241 from yahonda/rubocop_bundle_group
Move rubocop gems to dedicated Bundler group
2 parents 0b3a78d + 3b0e449 commit 59f43b4

2 files changed

Lines changed: 5 additions & 17 deletions

File tree

.github/workflows/rubocop.yml

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,14 @@ jobs:
1010
build:
1111

1212
runs-on: ubuntu-latest
13-
env:
14-
ORACLE_HOME: /opt/oracle/instantclient_23_26
15-
LD_LIBRARY_PATH: /opt/oracle/instantclient_23_26
1613

1714
steps:
1815
- uses: actions/checkout@v6
1916
- name: Set up Ruby 4.0
2017
uses: ruby/setup-ruby@v1
2118
with:
2219
ruby-version: "4.0"
23-
- name: Create symbolic link for libaio library compatibility
24-
run: |
25-
sudo ln -s /usr/lib/x86_64-linux-gnu/libaio.so.1t64 /usr/lib/x86_64-linux-gnu/libaio.so.1
26-
- name: Download Oracle instant client
27-
run: |
28-
wget -q https://download.oracle.com/otn_software/linux/instantclient/2326100/instantclient-basic-linux.x64-23.26.1.0.0.zip
29-
wget -q https://download.oracle.com/otn_software/linux/instantclient/2326100/instantclient-sdk-linux.x64-23.26.1.0.0.zip
30-
- name: Install Oracle instant client
31-
run: |
32-
sudo unzip -q instantclient-basic-linux.x64-23.26.1.0.0.zip -d /opt/oracle/
33-
sudo unzip -qo instantclient-sdk-linux.x64-23.26.1.0.0.zip -d /opt/oracle/
34-
3520
- name: Build and run RuboCop
3621
run: |
37-
bundle install --jobs 4 --retry 3
38-
bundle exec rubocop --parallel
22+
BUNDLE_ONLY=rubocop bundle install --jobs 4 --retry 3
23+
BUNDLE_ONLY=rubocop bundle exec rubocop --parallel

Gemfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ source "http://rubygems.org"
33
group :development do
44
gem "juwelier", "~> 2.0"
55
gem "rspec_junit_formatter"
6+
end
7+
8+
group :rubocop do
69
gem "rubocop", require: false
710
gem "rubocop-performance", require: false
811
gem "rubocop-rails", require: false

0 commit comments

Comments
 (0)