Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,27 @@ jobs:
run: bundle exec standardrb
working-directory: ./driver/riverqueue-sequel

tool_versions_check:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Check RUBY_VERSION matches .tool-versions Ruby version
run: |
cat <<- "EOF" | ruby
ruby_env = ENV["RUBY_VERSION"] || abort("need RUBY_VERSION")
ruby_tool_versions = File.read('.tool-versions').split('\n')[0].split[1]

if ruby_env != ruby_tool_versions
abort("CI version $RUBY_VERSION ${ruby_env } should match .tool-versions Ruby ${ruby_tool_versions }")
end
EOF

# 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)

type_check:
runs-on: ubuntu-latest
timeout-minutes: 3
Expand Down
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby 3.3
Loading