Skip to content

Commit 532dce7

Browse files
committed
CI: add hlint workflow
1 parent 7c9b932 commit 532dce7

File tree

2 files changed

+18
-5
lines changed

2 files changed

+18
-5
lines changed

.github/workflows/hlint.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: "Checking with HLint"
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- '**'
7+
8+
jobs:
9+
build10:
10+
name: "HLint check"
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: "HLint via ./fmt.sh"
16+
run: |
17+
./fmt.sh

.github/workflows/test.yml

Lines changed: 1 addition & 5 deletions
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)