From: Andy Allan Date: Wed, 28 Dec 2022 10:01:37 +0000 (+0000) Subject: Quote ruby versions in yaml X-Git-Tag: live~917^2 X-Git-Url: https://git.openstreetmap.org/rails.git/commitdiff_plain/61e0fa5f6315b543e8037e81d77c6b3f9a96ff6d?hp=-c 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 --- 61e0fa5f6315b543e8037e81d77c6b3f9a96ff6d diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 94eb05df9..bd02bd624 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -7,7 +7,7 @@ concurrency: cancel-in-progress: true env: os: ubuntu-20.04 - ruby: 2.7 + ruby: '2.7' jobs: rubocop: name: RuboCop diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 73ce90b92..f01b44bb7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -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