From 3bd86b99f19edd3aa08d055777c4f413fb731645 Mon Sep 17 00:00:00 2001 From: Erica Marigold Date: Mon, 24 Feb 2025 07:59:23 +0000 Subject: [PATCH] chore(actions): actually error in CI if tests fail --- .github/workflows/ci.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 818d2cd..f34b7cc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -115,4 +115,9 @@ jobs: run: nix develop -c pesde install --locked - name: Run tests - run: nix develop -c lune run tests + shell: nix develop -c bash + run: | + # HACK: Since the exit code isn't properly reflected due to frktest not returning + # the correct status on test fails, we have to parse the output and check ourselves + output="$(lune run tests extract | tee /dev/tty)" + tail -n 1 <<< $output | sed 's/\x1b\[[0-9;]*m//g' | grep -q "status: OK"