From b289335f45973c336c7687d4660d9a6a46a38cb2 Mon Sep 17 00:00:00 2001 From: Ajay Krishnan Date: Wed, 20 May 2026 06:45:53 -0700 Subject: [PATCH] Add GitHub Actions CI workflow Tobi T4 consensus: alpha gems shouldn't ship without proof that 'bundle exec rake test' passes on push. Workflow runs the test suite + gem build + post-install smoke load on Ruby 3.2, 3.3, and 3.4. Workflow will activate when the repo moves to GitHub. Local 'bundle exec rake test' continues to be the dev feedback loop. --- .github/workflows/test.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..b30e341 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,34 @@ +name: Test + +on: + push: + branches: [main] + pull_request: + branches: [main] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + ruby: ["3.2", "3.3", "3.4"] + steps: + - uses: actions/checkout@v4 + + - name: Set up Ruby ${{ matrix.ruby }} + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + + - name: Run tests + run: bundle exec rake test + + - name: Build gem + run: gem build opencode-ruby.gemspec + + - name: Verify gem loads after install + run: | + gem install --local opencode-ruby-*.gem + ruby -ropencode-ruby -e 'puts Opencode::VERSION'