Skip to content

Commit edc79cb

Browse files
committed
Quote Ruby versions in CI matrix
YAML parses unquoted `4.0` as a float and normalizes it to `4`, which ruby/setup-ruby resolves to the latest 4.x release. Once 4.1 ships, the "4.0" job would silently start testing 4.1 instead of 4.0. Quoting the versions as strings pins them to the intended releases.
1 parent 1bd2e6c commit edc79cb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
strategy:
1212
fail-fast: false
1313
matrix:
14-
ruby: [ 3.2, 3.3, 3.4, 4.0, ruby-head ]
14+
ruby: [ "3.2", "3.3", "3.4", "4.0", ruby-head ]
1515
runs-on: ubuntu-latest
1616
steps:
1717
- uses: actions/checkout@v6

0 commit comments

Comments
 (0)