ci: pipefail real (defaults.run.shell) + revert del test roto fusionado por falso verde #44

Merged
pattern merged 1 commits from ci-pipefail-real into main 2026-11-02 17:13:03 +00:00
2 changed files with 6 additions and 3 deletions
Showing only changes of commit 661ca844d0 - Show all commits
+6 -1
View File
@@ -8,8 +8,13 @@ on:
jobs: jobs:
lint-test: lint-test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
# r20: pipefail a nivel job — un - run: set -o pipefail en paso aparte NO
# persiste (cada paso es un shell nuevo) y el test roto de la demo #43
# siguio dando verde hasta ser auto-mergeado a main.
defaults:
run:
shell: bash --noprofile --norc -eo pipefail {0}
steps: steps:
- run: set -o pipefail # r19: sin esto, | tail se come los exit codes y un test roto da verde
- uses: actions/checkout@v4 - uses: actions/checkout@v4
with: with:
fetch-depth: 1 fetch-depth: 1
-2
View File
@@ -1,2 +0,0 @@
def test_rojo_demo():
assert False, "rompe a proposito — verifica pipefail del CI (r20)"