Commit d7ed9e5
Refactor examples workflow to use dynamic matrix configuration
Replace problematic include/exclude approach with setup-matrix job that
generates different matrices based on branch and trigger context.
The previous approach using conditional expressions in exclude with empty
strings ('') didn't work reliably - GitHub Actions can't truly conditionally
exclude matrix entries this way.
New approach:
- Add setup-matrix job that evaluates conditions and outputs JSON matrix
- examples job uses fromJson() to consume the dynamic matrix
- On PRs: runs 1 job (Ruby 3.4 + latest) for fast feedback
- On master/workflow_dispatch/force_run/full-ci: runs 2 jobs for full coverage
Benefits:
- Actually works (no empty string workarounds)
- Clear and maintainable (explicit bash conditions)
- Debuggable (matrix output visible in logs)
- Flexible (easy to add more conditions)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 6fc7d32 commit d7ed9e5
1 file changed
+22
-13
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
60 | | - | |
| 60 | + | |
61 | 61 | | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
62 | 82 | | |
63 | 83 | | |
64 | 84 | | |
65 | 85 | | |
66 | 86 | | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
| 87 | + | |
79 | 88 | | |
80 | 89 | | |
81 | 90 | | |
| |||
0 commit comments