Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rwe/actions-hlint-setup
GitHub Action: Set up hlint
https://github.com/rwe/actions-hlint-setup
github-actions haskell hlint
Last synced: 18 days ago
JSON representation
GitHub Action: Set up hlint
- Host: GitHub
- URL: https://github.com/rwe/actions-hlint-setup
- Owner: rwe
- License: mit
- Created: 2020-07-20T22:36:27.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2023-03-03T22:54:22.000Z (almost 2 years ago)
- Last Synced: 2024-12-06T07:34:42.658Z (28 days ago)
- Topics: github-actions, haskell, hlint
- Language: TypeScript
- Homepage:
- Size: 251 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# rwe/actions-hlint-setup
GitHub Action: Set up hlint
Downloads and a binary HLint release from [@ndmitchell/hlint](https://github.com/ndmitchell/hlint).
The release is cached using [@actions/tool-cache](https://github.com/actions/tool-cache) and is added to `PATH`.
See also [rwe/actions-hlint-run](https://github.com/rwe/actions-hlint-run), which will run hlint and format its output for GitHub annotations.
## Inputs
* `version`: The HLint version to download. Defaults to `3.1.6`.
## Outputs
* `hlint-dir`: Resulting directory containing the hlint executable
* `hlint-bin`: Location of the hlint executable
* `version`: Version of the hlint tool (same as input, if provided)## Example
```yaml
name: lint
on:
pull_request:
push:
branches:
- master
- 'releases/*'jobs:
hlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2- name: 'Set up HLint'
uses: rwe/actions-hlint-setup@v1
with:
version: '3.1.6'- name: 'Run HLint'
uses: rwe/actions-hlint-run@v1
with:
path: src/
fail-on: warning
```