Skip to content

Commit 949e5a9

Browse files
committed
Add .tool-versions containing Ruby 3.3
Add a `.tool-versions` so that the project works out of the box with version managers like asdf and mise. Add a CI check that makes sure our Ruby version in use there matches what's in `.tool-versions` so the two don't drift.
1 parent f3a07db commit 949e5a9

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,16 @@ jobs:
8484
run: bundle exec standardrb
8585
working-directory: ./driver/riverqueue-sequel
8686

87+
tool_versions_check:
88+
runs-on: ubuntu-latest
89+
90+
steps:
91+
- name: Checkout
92+
uses: actions/checkout@v4
93+
94+
- name: Check RUBY_VERSION matches .tool-versions Ruby version
95+
run: [[ "$RUBY_VERSION" == "$(cat .tool-versions | grep ruby | cut -w -f 2)" ]] || echo "CI version \$RUBY_VERSION should match .tool-versions Ruby `cat .tool-versions | grep ruby | cut -w -f 2`" && (exit 1)
96+
8797
type_check:
8898
runs-on: ubuntu-latest
8999
timeout-minutes: 3

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby 3.3

0 commit comments

Comments
 (0)