Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/hlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: "HLint check"

on:
pull_request:
branches:
- '**'

jobs:
build10:
name: "Run"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2

- name: 'Installing'
uses: rwe/actions-hlint-setup@v1
with:
version: '3.3.4'

- name: 'Checking code'
uses: rwe/actions-hlint-run@v1
with:
hlint-bin: "hlint --with-group=extra --hint=ghcide/.hlint.yaml"
path: '[ "ghcide/src", "ghcide/exe", "ghcide/bench/lib", "ghcide/bench/exe", "ghcide/bench/hist", "shake-bench/src", "ghcide/test/exe" ]'
6 changes: 1 addition & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -154,11 +154,7 @@ jobs:
${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-
${{ env.cache-name }}-${{ runner.os }}-

- run: cabal update

- name: "HLint via ./fmt.sh"
run: |
./fmt.sh
- run: cabal v2-update

# repeating builds to workaround segfaults in windows and ghc-8.8.4
- name: Build
Expand Down