diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 40b31d5..98c37de 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -14,7 +14,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest, macos-latest, windows-latest] - resolver: [nightly, lts-17, lts-16, lts-14] + resolver: [nightly, lts-20, lts-19] # Bugs in GHC make it crash too often to be worth running #exclude: # - os: windows-latest diff --git a/package.yaml b/package.yaml index 5b6a7e5..af0e545 100644 --- a/package.yaml +++ b/package.yaml @@ -35,11 +35,9 @@ tests: source-dirs: test ghc-options: - -threaded - - -rtsopts - - -with-rtsopts=-N dependencies: - base64-bytestring - - hspec == 2.* + - hspec >= 2.8.3 && < 3 - temporary - typed-process typed-process-test-single-threaded: diff --git a/test/SpecHook.hs b/test/SpecHook.hs new file mode 100644 index 0000000..cfb1f0d --- /dev/null +++ b/test/SpecHook.hs @@ -0,0 +1,7 @@ +module SpecHook where + +import Test.Hspec +import GHC.Conc + +hook :: Spec -> Spec +hook spec = runIO (getNumProcessors >>= setNumCapabilities) >> parallel spec