Commit bb0748c
fix: merge setup-gem-tests-matrix job into detect-changes (#3135)
## Summary
- Moves the `setup-gem-tests-matrix` job's 3-line matrix setup logic
into the `detect-changes` job as an additional step
- Eliminates one runner queue hop, saving 2-10 minutes per CI run
- `rspec-package-tests` now depends only on `detect-changes` instead of
both jobs
Closes #3130
## Test plan
- [ ] Verify CI runs successfully on this PR (the gem-tests workflow
should trigger)
- [ ] Confirm `rspec-package-tests` picks up the matrix from
`detect-changes` correctly
🤖 Generated with [Claude Code](https://claude.com/claude-code)
<!-- CURSOR_SUMMARY -->
---
> [!NOTE]
> **Medium Risk**
> CI workflow logic and job dependencies were changed, which could
inadvertently skip or misconfigure test runs if the new outputs/matrix
generation is incorrect. Actionlint version resolution now depends on
authenticated API access plus a pinned fallback, which is low-risk but
could affect caching/download behavior.
>
> **Overview**
> Improves `actionlint` workflow robustness by switching the release
lookup to an authenticated GitHub API call and adding a pinned fallback
(`v1.7.7`) when the API call or tag parsing fails, keeping cache keys
and downloads stable.
>
> Streamlines `gem-tests` by generating the RSpec matrix inside
`detect-changes` (exported as a job output) and removing the separate
`setup-gem-tests-matrix` job; `rspec-package-tests` now depends only on
`detect-changes` and consumes `needs.detect-changes.outputs.matrix`.
>
> <sup>Reviewed by [Cursor Bugbot](https://cursor.com/bugbot) for commit
231b17f. Bugbot is set up for automated
code reviews on this repo. Configure
[here](https://www.cursor.com/dashboard/bugbot).</sup>
<!-- /CURSOR_SUMMARY -->
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Chores**
* Improved workflow reliability for tool version lookup by consolidating
request/response handling, using authenticated requests, and falling
back to a pinned version on failure.
* Streamlined CI test orchestration by generating and exporting test
matrices within a single job, removing intermediate jobs and simplifying
downstream job dependencies.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
---------
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-authored-by: claude[bot] <209825114+claude[bot]@users.noreply.github.com>1 parent 4eb8364 commit bb0748c
2 files changed
Lines changed: 26 additions & 24 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | | - | |
53 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
54 | 57 | | |
55 | | - | |
56 | | - | |
57 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
58 | 61 | | |
59 | | - | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
60 | 65 | | |
| 66 | + | |
61 | 67 | | |
62 | 68 | | |
63 | 69 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
44 | 44 | | |
45 | 45 | | |
46 | 46 | | |
| 47 | + | |
47 | 48 | | |
48 | 49 | | |
49 | 50 | | |
| |||
70 | 71 | | |
71 | 72 | | |
72 | 73 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
| 74 | + | |
| 75 | + | |
87 | 76 | | |
88 | 77 | | |
89 | 78 | | |
90 | 79 | | |
91 | 80 | | |
92 | 81 | | |
93 | | - | |
| 82 | + | |
| 83 | + | |
94 | 84 | | |
95 | 85 | | |
96 | 86 | | |
97 | 87 | | |
98 | | - | |
| 88 | + | |
99 | 89 | | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
100 | 96 | | |
101 | 97 | | |
102 | | - | |
| 98 | + | |
103 | 99 | | |
104 | 100 | | |
105 | 101 | | |
| |||
114 | 110 | | |
115 | 111 | | |
116 | 112 | | |
117 | | - | |
| 113 | + | |
118 | 114 | | |
119 | 115 | | |
120 | 116 | | |
| |||
0 commit comments