Skip to content

Restyle support annotations, update stack configs #99

Restyle support annotations, update stack configs

Restyle support annotations, update stack configs #99

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: main
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
stack-yaml:
- stack.yaml
- stack-nightly.yaml
- stack-lts-20.26.yaml
- stack-lts-18.28.yaml
- stack-lts-16.31.yaml
- stack-lts-14.27.yaml
- stack-lts-12.26.yaml
fail-fast: false
steps:
- uses: actions/checkout@v4
- id: stack
uses: freckle/stack-action@v4
with:
stack-yaml: ${{ matrix.stack-yaml }}
stack-arguments: --coverage
- if: ${{ matrix.stack-yaml == 'stack.yaml' }}
name: Reformat coverage
run: |
tix='${{ steps.stack.outputs.local-hpc-root }}/combined/all/all.tix'
stack --resolver lts-18.28 --no-terminal install --copy-compiler-tool hpc-lcov
stack --resolver lts-18.28 --no-terminal exec -- hpc-lcov --file "$tix"
- if: ${{ matrix.stack-yaml == 'stack.yaml' }}
name: Upload coverage
uses: codecov/codecov-action@v2
with:
files: ./lcov.info
hlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: haskell/actions/hlint-setup@v2
with:
version: 3.5
- run: |
curl -o .hlint.yaml https://raw.githubusercontent.com/pbrisbin/dotfiles/master/hlint.yaml
- uses: haskell/actions/hlint-run@v2
with:
fail-on: warning