From 882f47b5580b5393617419994f043ff6d87d5a67 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Date: Thu, 30 Jul 2026 20:31:26 -0400 Subject: [PATCH] Rename test.yml to ci.yml and split typecheck into its own job Standardizes on the ci.yml/CI convention used by the other d3mlabs repos, and pulls the RBI-verify + srb tc step out of the test job so lint, typecheck, and test are each their own required-check context. The trigger narrows from every push to pushes on main plus pull_request, matching the rest of the family and avoiding double runs on PR branches. Co-authored-by: Cursor --- .github/workflows/{test.yml => ci.yml} | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) rename .github/workflows/{test.yml => ci.yml} (64%) diff --git a/.github/workflows/test.yml b/.github/workflows/ci.yml similarity index 64% rename from .github/workflows/test.yml rename to .github/workflows/ci.yml index e85c1eb..c00fadf 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/ci.yml @@ -1,7 +1,9 @@ -name: Test +name: CI on: push: + branches: [main] + pull_request: jobs: lint: @@ -17,7 +19,7 @@ jobs: - name: Run RuboCop run: bundle exec rubocop - test: + typecheck: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 @@ -40,6 +42,26 @@ jobs: - name: Verify RBIs and typecheck run: ./bin/tc.rb + test: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Detect Ruby version from dev.yml + id: ruby-version + run: echo "version=$(ruby -ryaml -e 'puts YAML.load_file("dev.yml")["ruby"]')" >> "$GITHUB_OUTPUT" + + - uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ steps.ruby-version.outputs.version }} + bundler-cache: true + + - name: Install shadowenv + run: | + curl -fsSL https://github.com/Shopify/shadowenv/releases/latest/download/shadowenv-x86_64-unknown-linux-gnu -o /usr/local/bin/shadowenv + chmod +x /usr/local/bin/shadowenv + shadowenv --version + - name: Run tests run: bundle exec rake test