Skip to content

chore: Ruby 3.3 floor, modern GHA, add test workflow - #26

Open
ronaldtse wants to merge 2 commits into
mainfrom
chore/best-practices-2026
Open

chore: Ruby 3.3 floor, modern GHA, add test workflow#26
ronaldtse wants to merge 2 commits into
mainfrom
chore/best-practices-2026

Conversation

@ronaldtse

Copy link
Copy Markdown
Contributor

Summary

  • .ruby-version: 2.73.3.8
  • Gemfile: ruby ">= 3.3.0"; fix ENV['INTERSCRIPT_GEM_VERSION'].empty? crash when env unset; graphql ~> 1.13; rspec pin
  • New .github/workflows/test.yml — Ruby matrix 3.3/3.4, checkout@v7, bundler-cache: true (no test workflow existed before)
  • manual-release.yml: checkout@v7, softprops/action-gh-release@v3 (was v0.1.7)
  • on-api-release.yml: checkout@v7, peter-evans/repository-dispatch@v4 (was v1); strip dead commented-out blocks
  • Add Dependabot (actions + bundler)

Test plan

  • YAML parses
  • CI green on Ruby 3.3 and 3.4
  • Manual release workflow still creates the expected tag

Known follow-ups (not in this PR)

  • Lambda Docker base image (lambci/lambda:20200812-build-ruby2.7) → AWS Lambda Ruby 3.3 runtime (public.ecr.aws/lambda/ruby:3.3 or equivalent). Requires testing the lambda publish path end-to-end.
  • interscript gem pinned to 0.1.9 — migrate to interscript 2.x (separate effort).
  • graphql 1.13 → 2.x (separate effort).
  • elgohr/Publish-Docker-Github-Action@master should pin to a released tag or migrate to official Docker actions.

Comment on lines +10 to +23
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
ruby: ["3.3", "3.4"]
env:
INTERSCRIPT_GEM_VERSION: "0.1.9"
steps:
- uses: actions/checkout@v7
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rspec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants