Giter Site home page Giter Site logo

hlint-setup's Introduction

hlint-setup

GitHub Action: Set up hlint.

Downloads a binary of HLint from @ndmitchell/hlint, caches it through @actions/tool-cache, and adds it into PATH.

See also haskell-actions/hlint-run, which will run hlint and represent its output in GitHub annotations.

Inputs

  • version: The HLint version to download. Currently defaults to 3.5.

    Note that on some virtual environments, some versions of hlint need extra prerequisites installed. E.g., on ubuntu-22.04, versions hlint < 3.5 need the libncurses5 library (#128).

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

name: lint
on:
  pull_request:
  push:
    branches:
      - master
      - 'releases/*'

jobs:
  hlint:
    runs-on: ubuntu-latest
    steps:
    - 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: src/
        fail-on: warning

hlint-setup's People

Contributors

dependabot[bot] avatar andreasabel avatar mihaimaruseac avatar rethab avatar anton-latukha avatar tclem avatar rwe avatar tfausak avatar newhoggy avatar pavelzw avatar wismill avatar kleidukos avatar jneira avatar hross avatar ryanglscott avatar thboop avatar a5ob7r avatar sgadkar2 avatar

Stargazers

Preetham Gujjula avatar

Watchers

 avatar Alexey Raga avatar

hlint-setup's Issues

Make default version "latest"

Instead of hard coding a default version that needs to be updated sometimes (#57), I think the default version should be "latest". That way users will get the latest version of HLint without anyone needing to change anything. And if users want to pin the current latest version at time of writing, they can specify the version input just like before.

I'd be happy to open a PR adding this functionality if it's desired. You can see how I do this with my cabal-gild-setup-action here: https://github.com/tfausak/cabal-gild-setup-action/blob/5aa7281b9e1d33818ed53230eef6f73dda3f89e1/index.js#L37

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.