Skip to content

Commit

Permalink
Updated the actions/checkout version.
Browse files Browse the repository at this point in the history
Signed-off-by: Hermann Mayer <[email protected]>
  • Loading branch information
Jack12816 committed Mar 11, 2024
1 parent 5e90bdb commit 5489569
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install the correct Ruby version
uses: ruby/setup-ruby@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
runs-on: ubuntu-22.04
timeout-minutes: 5
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install Ruby 2.5
uses: ruby/setup-ruby@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
env:
BUNDLE_GEMFILE: 'gemfiles/rails_${{ matrix.rails }}.gemfile'
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- name: Install the correct Ruby version
uses: ruby/setup-ruby@v1
Expand Down
4 changes: 3 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ gemspec
gem 'appraisal', '~> 2.4'
gem 'bundler', '~> 2.3'
gem 'countless', '~> 1.1'
gem 'factory_bot', '~> 6.2'
# TODO: Remove the upper lock when
# https://github.com/thoughtbot/factory_bot/issues/1614 is solved.
gem 'factory_bot', '~> 6.2', '< 6.4.5'
gem 'guard-rspec', '~> 4.7'
gem 'railties', '>= 5.2'
gem 'rake', '~> 13.0'
Expand Down
5 changes: 4 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ ID ?= id
MKDIR ?= mkdir
RM ?= rm
XARGS ?= xargs
TEST ?= test

# Container binaries
APPRAISAL ?= appraisal
Expand All @@ -35,6 +36,7 @@ RAKE ?= rake
RSPEC ?= rspec
RUBOCOP ?= rubocop
YARD ?= yard
RUBY_VERSION := ruby-version

# Files
GEMFILES ?= $(subst _,-,$(patsubst $(GEMFILES_DIR)/%.gemfile,%,\
Expand Down Expand Up @@ -113,7 +115,8 @@ test-style: \

test-style-ruby:
# Run the static code analyzer (rubocop)
@$(call run-shell,$(BUNDLE) exec $(RUBOCOP) -a)
@$(call run-shell,$(BUNDLE) exec $(RUBOCOP) -a \
|| ($(TEST) $$($(RUBY_VERSION)) != '2.5' && true))

clean:
# Clean the dependencies
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_5.2.gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ source "https://rubygems.org"
gem "appraisal", "~> 2.4"
gem "bundler", "~> 2.3"
gem "countless", "~> 1.1"
gem "factory_bot", "~> 6.2"
gem "factory_bot", "~> 6.2", "< 6.4.5"
gem "guard-rspec", "~> 4.7"
gem "railties", "~> 5.2.0"
gem "rake", "~> 13.0"
Expand Down

0 comments on commit 5489569

Please sign in to comment.