First attempt #674
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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-22.04 | |
permissions: | |
# Needed to upload results to GitHub code scanning. | |
security-events: write | |
steps: | |
- name: Checkout project contents 📡 | |
uses: actions/checkout@v4 | |
- name: Run hlint | |
uses: haskell-actions/hlint-scan@v1 | |
weeder: | |
name: Weeder - Check dead code | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout project contents 📡 | |
uses: actions/checkout@v4 | |
- name: Build the project 🌿🌿🌿 | |
uses: freckle/stack-action@v5 | |
with: | |
test: false | |
# Weeder needs compilation artifacts, so it must still be the same Job | |
- uses: freckle/[email protected] |