-
Notifications
You must be signed in to change notification settings - Fork 0
39 lines (32 loc) · 926 Bytes
/
static-checks.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
name: Static checks
on:
push:
branches: [main]
pull_request:
branches: [main]
types: [opened, synchronize]
permissions: {}
jobs:
hlint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
persist-credentials: false
- name: Set up HLint
uses: haskell/actions/hlint-setup@ce6c3a6f8cbe3bd6ce51b635b3f32ee792f22f91 # v2.4.7
- name: Run HLint
uses: haskell/actions/hlint-run@ce6c3a6f8cbe3bd6ce51b635b3f32ee792f22f91 # v2.4.7
with:
path: .
fail-on: warning
validate-cabal:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 # v4.1.0
with:
persist-credentials: false
- name: Validate Cabal file
run: cabal check