diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 52223d2..c056e93 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -1,10 +1,20 @@ on: push jobs: - test: + build: runs-on: ubuntu-latest + strategy: + matrix: + cabal: ["3.4"] + ghc: ["8.8.4", "8.10.5", "9.0.1"] + env: + CONFIG: "--enable-tests --enable-benchmarks" steps: - - uses: actions/checkout@v2 - - name: Haskell cabal-cache - uses: haskell-works/cabal-cache-action@master + - uses: actions/checkout@v2.3.4 + - uses: haskell/actions/setup@v1.2 + with: + ghc-version: ${{ matrix.ghc }} + cabal-version: ${{ matrix.cabal }} + - run: cabal update + - run: cabal install --lib HUnit - run: runhaskell code.hs