-
Notifications
You must be signed in to change notification settings - Fork 8
34 lines (33 loc) · 1.07 KB
/
codeQuality.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
# Inspired by https://tech.freckle.com/2021/05/18/haskell-on-actions/
name: Check Code Quality 👌
on:
push:
branches:
- "**" # Only trigger on branches (i.e. not tags, ..)
paths-ignore:
- "docs/**" # If only documentation changes, no need to build.
jobs:
hlint:
name: Hlint - Check for code sanity
runs-on: ubuntu-latest
steps:
- name: Checkout project contents 📡
uses: actions/[email protected]
- name: Setup hlint
uses: rwe/[email protected]
- name: Run hlint
uses: rwe/[email protected]
weeder:
name: Weeder - Check dead code
runs-on: ubuntu-latest
steps:
- name: Checkout project contents 📡
uses: actions/[email protected]
- name: Build the project 🌿🌿🌿
uses: freckle/stack-action@v5
with:
test: false
upgrade-stack: false
cache-save-always: true
# Weeder needs compilation artifacts, so it must still be the same Job
- uses: freckle/[email protected]