-
Notifications
You must be signed in to change notification settings - Fork 1
53 lines (48 loc) · 1.24 KB
/
hlint.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
name: HLint
concurrency:
group: ${{ github.ref }}-hlint
cancel-in-progress: true
on:
pull_request:
branches:
- master
paths:
- stack.yaml
- .hlint.yaml
- "bitcoin/**/*.hs"
- "bitcoin-test/**/*.hs"
- "bitcoin-bench/**/*.hs"
- ".github/workflows/hlint.yaml"
types:
- synchronize
- opened
- reopened
- ready_for_review
push:
branches:
- master
paths:
- stack.yaml
- .hlint.yaml
- "bitcoin/**/*.hs"
- "bitcoin-test/**/*.hs"
- ".github/workflows/hlint.yaml"
workflow_dispatch:
inputs: {}
jobs:
hlint:
if: github.event.pull_request.draft == false
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b
- name: "Set up HLint"
uses: haskell-actions/hlint-setup@0b0024319753ba0c8b2fa21b7018ed252aed8181
with:
version: "3.5"
- name: "Run HLint"
uses: haskell-actions/hlint-run@96199a3357287063c67606b26d533f1acb4b6c4e
with:
# For some reason this has to be a string containing JSON rather than a YAML sequence
path: '[ "bitcoin/", "bitcoin-test/", "bitcoin-bench/" ]'
fail-on: warning