Skip to content

Commit

Permalink
add hlint check workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
shayne-fletcher committed Aug 2, 2024
1 parent 2b360c7 commit 2ca3e56
Showing 1 changed file with 41 additions and 0 deletions.
41 changes: 41 additions & 0 deletions .github/workflows/hlint-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: hlint-check
on:
push:
pull_request:
jobs:
# hlint:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - name: 'Set up HLint'
# uses: haskell-actions/hlint-setup@v2
# with:
# version: '3.8'
# - name: 'ghc-lib'
# uses: haskell-actions/hlint-run@v2
# with:
# path: '["CI.hs", "ghc-lib-gen/src", "examples/ghc-lib-test-utils/src"]'
# fail-on: warning
hlint-examples:
runs-on: ubuntu-latest
strategy:
matrix:
version: [GHC_8_8, GHC_8_10, GHC_9_0, GHC_9_2, GHC_9_4, GHC_9_6, GHC_9_8, GHC_9_10]
steps:
- uses: actions/checkout@v4
- name: 'Set up HLint'
uses: haskell-actions/hlint-setup@v2
with:
version: '3.8'
- name: 'ghc-lib-test-mini-hlint'
uses: haskell-actions/hlint-run@v2
with:
hlint-bin: hlint --cpp-include examples/ghc-lib-test-mini-hlint/extra-source-files --cpp-define ${{matrix.version}}
path: '["examples/ghc-lib-test-mini-hlint/src"]'
fail-on: warning
- name: 'ghc-lib-test-mini-compile'
uses: haskell-actions/hlint-run@v2
with:
hlint-bin: hlint --cpp-include examples/ghc-lib-test-mini-compile/extra-source-files --cpp-define ${{matrix.version}}
path: '["examples/ghc-lib-test-mini-compile/src"]'
fail-on: warning

0 comments on commit 2ca3e56

Please sign in to comment.