diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 61f712d..9c0f7ce 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -84,6 +84,17 @@ 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: | + [[ "$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 diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 0000000..053cba7 --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +ruby 3.3