Skip to content

Commit 3e17c4f

Browse files
CI: add hlint workflow (#2537)
* CI: add hlint workflow * CI: hlint: update to action This is what `fmt.sh` runs. * CI: hlint: use version 3.3.1 * CI: hlint: fix args * CI: hlint: use 3.3.4
1 parent 7c9b932 commit 3e17c4f

File tree

2 files changed

+25
-5
lines changed

2 files changed

+25
-5
lines changed

.github/workflows/hlint.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: "HLint check"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '**'
7+
8+
jobs:
9+
build10:
10+
name: "Run"
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: 'Installing'
16+
uses: rwe/actions-hlint-setup@v1
17+
with:
18+
version: '3.3.4'
19+
20+
- name: 'Checking code'
21+
uses: rwe/actions-hlint-run@v1
22+
with:
23+
hlint-bin: "hlint --with-group=extra --hint=ghcide/.hlint.yaml"
24+
path: '[ "ghcide/src", "ghcide/exe", "ghcide/bench/lib", "ghcide/bench/exe", "ghcide/bench/hist", "shake-bench/src", "ghcide/test/exe" ]'

.github/workflows/test.yml

+1-5
Original file line numberDiff line numberDiff line change
@@ -154,11 +154,7 @@ jobs:
154154
${{ env.cache-name }}-${{ runner.os }}-${{ matrix.ghc }}-
155155
${{ env.cache-name }}-${{ runner.os }}-
156156
157-
- run: cabal update
158-
159-
- name: "HLint via ./fmt.sh"
160-
run: |
161-
./fmt.sh
157+
- run: cabal v2-update
162158

163159
# repeating builds to workaround segfaults in windows and ghc-8.8.4
164160
- name: Build

0 commit comments

Comments
 (0)