test on ghc 9.6.1 and cabal 3.10.0.1

This commit is contained in:
Marco Perone 2023-03-14 11:49:24 +01:00 committed by Marco Perone
parent 9c9010113c
commit 9f27aabf99
4 changed files with 33 additions and 19 deletions

View File

@ -13,8 +13,8 @@ jobs:
build:
strategy:
matrix:
ghc: ['9.0.2', '9.2.7', '9.4.4']
cabal: ['3.8.1.0', '3.6.2.0', '3.4.1.0']
ghc: ['9.0.2', '9.2.7', '9.4.4', '9.6.1']
cabal: ['3.4.1.0', '3.6.2.0', '3.8.1.0', '3.10.1.0']
os: ['ubuntu-latest', 'macos-latest']
exclude:
# Cabal 3.4.1.0 supports GHC version < 9.1
@ -22,8 +22,15 @@ jobs:
ghc: '9.2.7'
- cabal: '3.4.1.0'
ghc: '9.4.4'
- cabal: '3.4.1.0'
ghc: '9.6.1'
# Cabal 3.6.2.0 supports GHC version < 9.4
- cabal: '3.6.2.0'
ghc: '9.4.4'
- cabal: '3.6.2.0'
ghc: '9.6.1'
runs-on: ${{ matrix.os }}
name: Build and test with cabal ${{ matrix.cabal }} and GHC ${{ matrix.ghc }} on ${{ matrix.os }}
name: platform ${{ matrix.os }} GHC ${{ matrix.ghc }} cabal ${{ matrix.cabal }}
steps:
- name: Checkout
uses: actions/checkout@v3
@ -42,6 +49,9 @@ jobs:
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ github.sha }}
restore-keys: ${{ runner.os }}-${{ matrix.ghc }}-
- name: Update cabal package list
run: cabal update
- name: Build dependencies
run: cabal build --only-dependencies
@ -51,5 +61,9 @@ jobs:
- name: Test on current dependencies
run: cabal test
- name: Test on HEAD dependencies
- name: Test on most recent dependencies
run: cabal test --index-state HEAD
- name: Test on oldest dependencies
if: matrix.cabal == '3.10.1.0'
run: cabal test --prefer-oldest

View File

@ -1,3 +1,3 @@
index-state: 2023-03-09T07:24:13Z
index-state: 2023-03-14T09:58:19Z
packages: *.cabal
write-ghc-environment-files: always

View File

@ -34,7 +34,7 @@ library
build-depends:
base >=4.15 && <4.19
, profunctors >=3.2 && <5.7
, singletons-base >=3.0 && <3.2
, singletons-base >=3.0 && <3.3
, text >=1.2 && <2.1
default-language: Haskell2010
if impl(ghc >= 9.2)
@ -114,9 +114,9 @@ library crem-examples
build-depends:
base >=4.15 && <4.19
, crem
, profunctors >=3.2 && <5.7
, singletons-base >=3.0 && <3.2
, text >=1.2 && <2.1
, profunctors
, singletons-base
, text
default-language: Haskell2010
if impl(ghc >= 9.2)
ghc-options: -Wno-missing-kind-signatures
@ -247,7 +247,7 @@ executable hobbit-map
base >=4.15 && <4.19
, crem
, crem-examples
, text >=1.2 && <2.1
, text
default-language: Haskell2010
if impl(ghc >= 9.2)
ghc-options: -Wno-missing-kind-signatures
@ -391,8 +391,8 @@ test-suite crem-spec
, crem
, crem-examples
, hspec >=2.7 && <2.11
, profunctors >=3.2 && <5.7
, singletons-base >=3.0 && <3.2
, profunctors
, singletons-base
default-language: Haskell2010
if impl(ghc >= 9.2)
ghc-options: -Wno-missing-kind-signatures

View File

@ -97,7 +97,7 @@ library:
source-dirs: src
dependencies:
- profunctors >= 3.2 && < 5.7
- singletons-base >= 3.0 && < 3.2
- singletons-base >= 3.0 && < 3.3
- text >= 1.2 && < 2.1
# Disable adding Paths_crem to other-modules, because it does not conform to our style guide.
# https://github.com/sol/hpack#handling-of-paths_-modules
@ -110,9 +110,9 @@ internal-libraries:
source-dirs: examples
dependencies:
- crem
- profunctors >= 3.2 && < 5.7
- singletons-base >= 3.0 && < 3.2
- text >= 1.2 && < 2.1
- profunctors
- singletons-base
- text
# Disable adding Paths_crem to other-modules, because it does not conform to our style guide.
# https://github.com/sol/hpack#handling-of-paths_-modules
when:
@ -127,8 +127,8 @@ tests:
- crem
- crem-examples
- hspec >= 2.7 && < 2.11
- profunctors >= 3.2 && < 5.7
- singletons-base >= 3.0 && < 3.2
- profunctors
- singletons-base
build-tools: hspec-discover:hspec-discover
when:
- condition: false
@ -167,7 +167,7 @@ executables:
dependencies:
- crem
- crem-examples
- text >= 1.2 && < 2.1
- text
# Disable adding Paths_crem to other-modules, because it does not conform to our style guide.
# https://github.com/sol/hpack#handling-of-paths_-modules
when: