CI: simplify linting action
@@ -16,15 +16,13 @@ jobs:
lint:
name: Lint
runs-on: ubuntu-latest
+ env:
+ hlint_script: https://raw.github.com/ndmitchell/hlint/master/misc/run.sh
+
steps:
- name: Checkout
uses: actions/checkout@v2
- - name: Download HLint
- run: |
- curl -sL https://raw.github.com/ndmitchell/hlint/master/misc/travis.sh > ~/hlint
- chmod +x ~/hlint
-
- - name: Check sources
+ - name: Download and run hlint
run: |
- ~/hlint .
+ curl -sSL "${hlint_script}" | sh -s .
