From 61e0fa5f6315b543e8037e81d77c6b3f9a96ff6d Mon Sep 17 00:00:00 2001 From: Andy Allan Date: Wed, 28 Dec 2022 10:01:37 +0000 Subject: [PATCH] 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 --- .github/workflows/lint.yml | 2 +- .github/workflows/tests.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 -- 2.39.5