Skip to content

Commit 6bca5a3

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 908377b commit 6bca5a3

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/ci.yaml

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

87+
tool_versions_check:
88+
runs-on: ubuntu-latest
89+
runs-on: ubuntu-latest
90+
91+
steps:
92+
- name: Checkout
93+
uses: actions/checkout@v4
94+
95+
- name: Check $RUBY_VERSION matches `.tool-versions` Ruby version
96+
- run: |
97+
[[ "$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)
98+
8799
type_check:
88100
runs-on: ubuntu-latest
89101
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)