diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 77f7957..abce680 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,6 +16,10 @@ jobs: pre-commit: uses: ./.github/workflows/pre-commit.yaml - build-and-test: + hlint: needs: pre-commit + uses: ./.github/workflows/hlint.yaml + + build-and-test: + needs: hlint uses: ./.github/workflows/build-and-test.yaml diff --git a/.github/workflows/hlint.yaml b/.github/workflows/hlint.yaml new file mode 100644 index 0000000..38fab06 --- /dev/null +++ b/.github/workflows/hlint.yaml @@ -0,0 +1,19 @@ +on: + workflow_call: + +jobs: + hlint: + name: Hlint + runs-on: ubuntu-latest + steps: + - name: Clone project + uses: actions/checkout@v4 + + - name: Set up HLint + uses: haskell-actions/hlint-setup@v2 + + - name: Run HLint + uses: haskell/actions/hlint-run@v2 + with: + path: . + fail-on: warning