Git should be configured in CI #15
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
on: [push] | |
name: test | |
jobs: | |
test: | |
name: Run test on GHC ${{ matrix.ghc }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ghc: ['latest'] | |
cabal: ['latest'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Haskell | |
uses: haskell/actions/setup@v1 | |
with: | |
ghc-version: ${{ matrix.ghc }} | |
cabal-version: ${{ matrix.cabal }} | |
- run: | | |
git config --global user.email "[email protected]" | |
git config --global user.name "John Doe" | |
cabal test --test-show-details=direct | |
build: | |
name: Build on GHC ${{ matrix.ghc }} | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
ghc: ['latest'] | |
cabal: ['latest'] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Haskell | |
uses: haskell/actions/setup@v1 | |
with: | |
ghc-version: ${{ matrix.ghc }} | |
cabal-version: ${{ matrix.cabal }} | |
- run: cabal build |