Skip to content

Commit

Permalink
Adding shell linting + fixing check-version-matches.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
felixsch committed Feb 6, 2024
1 parent 2ba89d1 commit 212be22
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/lint-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,7 @@ jobs:
--health-retries=3
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- uses: actions/checkout@v4

- name: Set up Ruby
uses: ruby/setup-ruby@v1
Expand All @@ -53,6 +51,11 @@ jobs:
sudo mkdir -p /var/lib/rmt
ruby -e "require 'yaml'; puts({'database_test'=>{'host' => '127.0.0.1', 'port' => 3306, 'username'=>'rmt','password'=>'rmt','database'=>'rmt_test','adapter'=>'mysql2','encoding'=>'utf8','timeout'=>5000,'pool'=>5}}.to_yaml)" > config/rmt.local.yml
- name: Run Shell lint
uses: azohra/shell-linter@latest
with:
path: "ci/rmt-*"

- name: Run Lint
run: |
bundle exec rubocop -D
Expand Down
5 changes: 1 addition & 4 deletions ci/check-version-matches.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ def spec_version
end

def rmt_version
@rmt_version ||= (require_relative 'lib/rmt' and RMT::VERSION)

require_relative '../lib/rmt'
@rmt_version = RMT::VERSION
@rmt_version ||= (require_relative '../lib/rmt' and RMT::VERSION)
end

def failure(msg)
Expand Down

0 comments on commit 212be22

Please sign in to comment.