Commit 085f193
Fail the devcontainer CI job when rake spec fails
`.github/workflows/devcontainer.yml`'s `runCmd` is a multi-line bash
script with no `set -e`, so a non-zero exit from
`bundle exec rake spec` does not propagate. The script keeps running,
executes `bundle exec rubocop`, and the script's exit code becomes
RuboCop's exit code. As long as RuboCop is clean, GitHub Actions
marks the job green even when rspec is red.
Add `set -e` so the first non-zero exit aborts the script and surfaces
through `devcontainers/ci` as a job failure. Mirrors
rsim/oracle-enhanced#2801.
Scope kept intentionally minimal: one `set -e` line. `-u` risks
tripping on unset-but-harmless variables and the immediate bug is
just exit-code propagation.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent e12dd09 commit 085f193
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
0 commit comments