Skip to content

Commit 35822c8

Browse files
committed
Avoid installing gems for development on GitHub Actions
This fixes #14
1 parent 9a17019 commit 35822c8

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Gemfile

+12-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,18 @@ ruby '3.1.1'
66

77
gem 'faraday'
88

9-
group :development, :test do
9+
# For development
10+
#
11+
# These gems should be installed only for development environment, but
12+
# `bundle config set --local without 'development,test'` cannot be
13+
# used because it stores the configuration in `.bundle/config`, and
14+
# this file is hard to track on Git
15+
#
16+
# By the way, `--without` option is deprecated
17+
#
18+
# ENV['CI'] is only set on GitHub Actions
19+
#
20+
unless ENV['CI']
1021
gem 'dotenv'
1122
gem 'pry-byebug'
1223
end

0 commit comments

Comments
 (0)