File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -108,3 +108,37 @@ jobs:
108108 # 📦 Build Gem 📦
109109 bundle exec rake build
110110 working-directory : " ${{ steps.setup.outputs.gem_dir || '' }}"
111+
112+ verify :
113+ runs-on : ubuntu-24.04
114+ needs :
115+ - analyze
116+ - build
117+ if : ${{ always() }} # Always run so we can detect failures/skips
118+ steps :
119+ - name : Check that at least one gem was selected
120+ run : |
121+ if [ "${{ needs.analyze.outputs.gems }}" = "[]" ]; then
122+ echo "❌ No gems selected — build matrix was empty."
123+ exit 1
124+ fi
125+ gems='${{ needs.analyze.outputs.gems }}'
126+ count=$(echo "$gems" | jq 'length')
127+ echo "ℹ️ Build count: $count"
128+
129+ - name : Check that build job actually ran
130+ run : |
131+ if [ "${{ needs.build.result }}" = "skipped" ]; then
132+ echo "❌ Build job was skipped — no builds executed."
133+ exit 1
134+ fi
135+
136+ - name : Check that all builds passed
137+ run : |
138+ if [ "${{ needs.build.result }}" != "success" ]; then
139+ echo "❌ One or more builds failed."
140+ exit 1
141+ fi
142+
143+ - name : All checks passed
144+ run : echo "✅ All builds ran and passed."
You can’t perform that action at this time.
0 commit comments