Remove null
s from generated JSON
#51
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: cabal | |
on: | |
push: | |
branches: [main, ci-cabal] | |
pull_request: | |
branches: [main] | |
jobs: | |
build: | |
name: ghc ${{ matrix.ghc }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
cabal: ["3.6"] | |
ghc: | |
- "8.8.4" | |
- "8.10.7" | |
- "9.0.2" | |
- "9.2.2" | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: haskell/actions/setup@v1 | |
name: setup GHC and cabal-install | |
with: | |
ghc-version: ${{ matrix.ghc }} | |
cabal-version: ${{ matrix.cabal }} | |
- uses: rwe/actions-hlint-setup@v1 | |
name: Set up HLint | |
with: | |
version: "3.3.6" | |
- uses: actions/cache@v2 | |
name: cache ~/.cabal/store | |
with: | |
path: ~/.cabal/store | |
key: ${{ runner.os }}-${{ matrix.cabal }}-${{ matrix.ghc }}-cabal | |
- name: build | |
run: | | |
cabal update | |
cabal build all --enable-tests | |
- name: test golden | |
run: cabal test test:golden --test-show-details=direct --test-option="--color=always" | |
- uses: rwe/actions-hlint-run@v2 | |
name: hlint | |
with: | |
path: '["library", "exe", "test-suite-golden/src"]' | |
fail-on: suggestion |