Skip to content

Commit

Permalink
Merge pull request #40 from cabalism/ci/hlint-workflow
Browse files Browse the repository at this point in the history
Add a github action for hlint
  • Loading branch information
philderbeast authored May 20, 2024
2 parents a1b799e + fe1c912 commit f4af6b2
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 32 deletions.
11 changes: 0 additions & 11 deletions .github/workflows/cabal.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@ jobs:
ghc-version: ${{ matrix.ghc }}
cabal-version: ${{ matrix.cabal }}

- uses: rwe/actions-hlint-setup@v1
name: Set up HLint
with:
version: "3.3.6"

- uses: actions/cache@v2
name: cache ~/.cabal/store
with:
Expand All @@ -46,9 +41,3 @@ jobs:
- name: test golden
run: cabal test test:golden --test-show-details=direct --test-option="--color=always"

- uses: rwe/actions-hlint-run@v2
name: hlint
with:
path: '["library", "exe", "test-suite-golden/src"]'
fail-on: suggestion
30 changes: 30 additions & 0 deletions .github/workflows/hlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: hlint

on:
push:
paths-ignore:
- "**.md"
pull_request:
paths-ignore:
- "**.md"

jobs:
build:
name: hlint-3.8
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
submodules: true

- uses: haskell-actions/hlint-setup@v2
name: Set up HLint
with:
version: "3.8"

- uses: haskell-actions/hlint-run@v2
name: hlint
with:
path: '["library/", "exe/", "test-suite-golden/src"]'
fail-on: suggestion
Empty file added .hlint.yaml
Empty file.
21 changes: 0 additions & 21 deletions test-suite-hlint/HLint.hs

This file was deleted.

0 comments on commit f4af6b2

Please sign in to comment.