-
Notifications
You must be signed in to change notification settings - Fork 0
38 lines (33 loc) · 924 Bytes
/
codestyle.yml
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
---
name: Codestyle
on:
- push
- pull_request
jobs:
ormolu:
name: Lint code layout using Ormolu
runs-on: ubuntu-22.04
steps:
- name: checkout
uses: actions/checkout@v2
- name: ormolu
uses: mrkkrp/ormolu-action@v10
cabal-fmt:
name: Lint Cabal project description using cabal-fmt
runs-on: ubuntu-22.04
steps:
- name: Cache Cabal files
uses: actions/cache@v3
with:
path: |
~/.cabal/packages
~/.cabal/store
key: ${{ runner.os }}-cabal
- name: Install cabal-fmt
run: |
cabal update
cabal install --ignore-project --with-compiler=ghc-9.6 "cabal-fmt-0.1.11"
- name: checkout
uses: actions/checkout@v2
- name: Check formatting of Cabal project description
run: ~/.cabal/bin/cabal-fmt --Werror --check landlock/landlock.cabal psx/psx.cabal