From 2d49757b9195c311aae7d37673a6380a14f476c4 Mon Sep 17 00:00:00 2001 From: "Rune K. Svendsen" Date: Sat, 28 Dec 2024 08:11:23 +0100 Subject: [PATCH 1/2] CI: fail-fast: false --- .github/workflows/cabal-in-nix-shell.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/cabal-in-nix-shell.yml b/.github/workflows/cabal-in-nix-shell.yml index 963382e..7548bf0 100644 --- a/.github/workflows/cabal-in-nix-shell.yml +++ b/.github/workflows/cabal-in-nix-shell.yml @@ -7,6 +7,7 @@ on: jobs: build_test: strategy: + fail-fast: false matrix: os: [ubuntu-22.04, ubuntu-20.04, macos-13] ghc: [ghc88, ghc96, ghc810, ghc884, ghc90] From 4cf67a8c692f4f8f32d02b7f124b5524d1486731 Mon Sep 17 00:00:00 2001 From: "Rune K. Svendsen" Date: Sat, 28 Dec 2024 09:51:39 +0100 Subject: [PATCH 2/2] CI: re-run failed tests on failure --- .github/workflows/cabal-in-nix-shell.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/cabal-in-nix-shell.yml b/.github/workflows/cabal-in-nix-shell.yml index 7548bf0..e99d7e0 100644 --- a/.github/workflows/cabal-in-nix-shell.yml +++ b/.github/workflows/cabal-in-nix-shell.yml @@ -54,3 +54,7 @@ jobs: - name: Run tests run: nix-shell --argstr ghcVersion ${{ matrix.ghc }} --run 'cabal test --test-show-details direct' # "--test-show-details direct" makes cabal print test suite output to terminal + + - name: Run failed tests + if: failure() + run: nix-shell --argstr ghcVersion ${{ matrix.ghc }} --run 'cabal test --test-show-details failures'