Skip to content

Commit bf5ee80

Browse files
committed
Explicitly install ruby
This hopefully correctly sets the paths so that gems can be installed for the current user. gem shouldn't issue the following warning anymore: You don't have /home/runner/.gem/ruby/2.7.0/bin in your PATH, gem executables will not run.
1 parent b284ede commit bf5ee80

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ jobs:
3030
key: ${{ runner.os }}-${{ hashFiles('pmdtester.gemspec') }}
3131
restore-keys: |
3232
${{ runner.os }}-
33+
- name: Set up Ruby 2.7
34+
uses: ruby/setup-ruby@v1
35+
with:
36+
ruby-version: 2.7
3337
- name: Setup Environment
3438
shell: bash
3539
run: |

0 commit comments

Comments
 (0)