name: Haskell CI on: [pull_request] jobs: build: name: ghc ${{ matrix.ghc }} runs-on: ubuntu-16.04 strategy: matrix: ghc: ["8.2.2", "8.4.4", "8.6.5", "8.8.1"] cabal: ["latest"] steps: - uses: actions/checkout@master if: github.event.action == 'opened' || github.event.action == 'synchronize' - uses: actions/setup-haskell@v1 name: Setup Haskell with: ghc-version: ${{ matrix.ghc }} cabal-version: ${{ matrix.cabal }} - name: Install dependencies run: | cabal v2-update cabal v2-configure --enable-tests --write-ghc-environment-files=always -j2 cabal v2-build --only-dependencies - name: Build & test run: | cabal v2-build cabal v2-test cabal v2-haddock cabal v2-sdist cabal check