Skip to content

Commit 5ddb224

Browse files
committed
Add hlint gh-action.
1 parent ae241e7 commit 5ddb224

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/hlint.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: hlint
2+
3+
on:
4+
pull_request:
5+
push:
6+
7+
jobs:
8+
style:
9+
name: hlint
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v3
14+
with:
15+
submodules: true
16+
17+
- uses: haskell/actions/hlint-setup@v2
18+
name: Set up HLint
19+
with:
20+
version: "3.4"
21+
22+
- name: hlint
23+
run: |
24+
set -ex
25+
hlint src/
26+
hlint src/ --cpp-define=WINDOWS=1
27+
hlint test/ --cpp-simple

0 commit comments

Comments
 (0)