Skip to content

[sarif] Remove encoding hlint version in tests (#1514) #980

[sarif] Remove encoding hlint version in tests (#1514)

[sarif] Remove encoding hlint version in tests (#1514) #980

Workflow file for this run

name: ci
on:
push:
pull_request:
schedule:
- cron: '0 3 * * 6' # 3am Saturday
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
ghc: ['9.4', '9.2']
include:
- os: windows-latest
ghc: '9.4'
- os: macOS-latest
ghc: '9.4'
steps:
- run: git config --global core.autocrlf false
- uses: actions/checkout@v2
- uses: haskell/actions/setup@v2
id: setup-haskell
with:
ghc-version: ${{ matrix.ghc }}
- name: Get GHC libdir
id: get-ghc-libdir
run: |
echo "::set-output name=libdir::$(ghc --print-libdir)"
shell: bash
- run: cabal v2-update
- run: cabal v2-freeze --enable-tests
- uses: actions/cache@v2
with:
path: ${{ steps.setup-haskell.outputs.cabal-store }}
key: ${{ runner.os }}-${{ matrix.ghc }}-${{ steps.get-ghc-libdir.outputs.libdir }}-${{ hashFiles('cabal.project.freeze') }}
- run: cabal new-install apply-refact --install-method=copy
- run: cabal v2-run hlint -- --test