You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-13Lines changed: 9 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,13 +108,16 @@ and the [condition and expression syntax](https://help.github.com/en/actions/ref
108
108
* `.tool-versions` reads from the project's `.tool-versions` file
109
109
* If the `ruby-version` input is not specified, `.ruby-version` is tried first, followed by `.tool-versions`
110
110
111
+
### Working Directory
112
+
113
+
The `working-directory` input can be set to resolve `.ruby-version`, `.tool-versions` and `Gemfile.lock`
114
+
if they are not at the root of the repository, see [action.yml](action.yml) for details.
115
+
111
116
### Bundler
112
117
113
-
By default, if there is a `Gemfile.lock` file with a `BUNDLED WITH` section,
118
+
By default, if there is a `Gemfile.lock` file (or `$BUNDLE_GEMFILE.lock` if `$BUNDLE_GEMFILE` is set) with a `BUNDLED WITH` section,
114
119
the latest version of Bundler with the same major version will be installed.
115
-
Otherwise, the latest Bundler version is installed (except for Ruby 2.2 and 2.3 where only Bundler 1 is supported).
116
-
117
-
If your gemfile is not named "Gemfile" or if your project includes multiple gemfiles, you can set the path to a gemfile with the `BUNDLE_GEMFILE` environment variable. The ".lock" suffix will be added to the path before evaluating the file.
120
+
Otherwise, the latest compatible Bundler version is installed (Bundler 2 on Ruby >= 2.4, Bundler 1 on Ruby < 2.4).
118
121
119
122
This behavior can be customized, see [action.yml](action.yml) for details about the `bundler` input.
120
123
@@ -128,7 +131,7 @@ This action provides a way to automatically run `bundle install` and cache the r
128
131
```
129
132
130
133
This caching speeds up installing gems significantly and avoids too many requests to RubyGems.org.
131
-
It needs a `Gemfile` under the [`working-directory`](#working-directory).
134
+
It needs a `Gemfile` (or `$BUNDLE_GEMFILE`) under the [`working-directory`](#working-directory).
132
135
The caching works whether there is a `Gemfile.lock` or not.
133
136
If there is a `Gemfile.lock`, `bundle config --local deployment true` is used.
134
137
@@ -164,11 +167,6 @@ This uses the [cache action](https://github.com/actions/cache).
164
167
The code above is a more complete version of the [Ruby - Bundler example](https://github.com/actions/cache/blob/master/examples.md#ruby---bundler).
165
168
Make sure to include `use-ruby` in the `key` to avoid conflicting with previous caches.
166
169
167
-
### Working Directory
168
-
169
-
The `working-directory` input can be set to resolve `.ruby-version`, `.tool-versions` and `Gemfile.lock`
170
-
if they are not at the root of the repository, see [action.yml](action.yml) for details.
171
-
172
170
## Windows
173
171
174
172
Note that running CI on Windows can be quite challenging if you are not very familiar with Windows.
@@ -193,9 +191,7 @@ Make sure to always use the latest release before reporting an issue on GitHub.
193
191
This action follows semantic versioning with a moving `v1` branch.
194
192
This follows the [recommendations](https://github.com/actions/toolkit/blob/master/docs/action-versioning.md) of GitHub Actions.
195
193
196
-
## Limitations
197
-
198
-
### Using self-hosted runners
194
+
## Using self-hosted runners
199
195
You must meet the following parameters to use this action with self-hosted runners:
200
196
201
197
* Make sure that the operating system has `libyaml-0` installed
Copy file name to clipboardExpand all lines: action.yml
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -10,7 +10,10 @@ inputs:
10
10
required: false
11
11
default: 'default'
12
12
bundler:
13
-
description: 'The version of Bundler to install. Either none, 1, 2, latest or Gemfile.lock. For Gemfile.lock, the version is determined based on the BUNDLED WITH section from the file ($BUNDLE_GEMFILE || Gemfile).lock. Defaults to Gemfile.lock if it exists and latest otherwise.'
13
+
description: |
14
+
The version of Bundler to install. Either 'none', 1, 2, 'latest' or 'Gemfile.lock'.
15
+
For 'Gemfile.lock', the version is determined based on the BUNDLED WITH section from the file ($BUNDLE_GEMFILE || Gemfile).lock.
16
+
Defaults to 'Gemfile.lock' if it exists and 'latest' otherwise.
0 commit comments