Quote ruby versions in yaml

Without quotes these are parsed as numbers, which can cause subtle
problems. For example, "ruby: 3.0" is interpreted by the
ruby/setup-rubyaction as "ruby: 3", meaning 3.x instead of the
intended 3.0.x
This commit is contained in:
Andy Allan 2022-12-28 10:01:37 +00:00
parent 88b4555472
commit 61e0fa5f63
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ concurrency:
cancel-in-progress: true
env:
os: ubuntu-20.04
ruby: 2.7
ruby: '2.7'
jobs:
rubocop:
name: RuboCop

View file

@ -11,7 +11,7 @@ jobs:
strategy:
matrix:
ubuntu: [20.04, 22.04]
ruby: [2.7, 3.0, 3.1]
ruby: ['2.7', '3.0', '3.1']
runs-on: ubuntu-${{ matrix.ubuntu }}
env:
RAILS_ENV: test