-
-
Notifications
You must be signed in to change notification settings - Fork 421
36 lines (32 loc) · 865 Bytes
/
code-style.yaml
File metadata and controls
36 lines (32 loc) · 865 Bytes
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
name: Code style checks
concurrency:
group: formatting-${{ github.ref_name }}
cancel-in-progress: true
on:
push:
pull_request:
jobs:
formatting:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v6
with:
fetch-depth: 1
- name: Install Nix
uses: cachix/install-nix-action@v31
- name: Check code formatting
run: |
nix develop '#haskellFormatter' --command fourmolu --mode=check --check-idempotence servant servant-*
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v6
with:
fetch-depth: 1
- name: Install Nix
uses: cachix/install-nix-action@v31
- name: Run hlint check
run: |
nix develop '#haskellLinter' --command hlint servant servant-*