Skip to content

Commit

Permalink
Switch away from nix in hlint check
Browse files Browse the repository at this point in the history
  • Loading branch information
newhoggy committed Mar 7, 2023
1 parent 7f2e182 commit 5681b2d
Showing 1 changed file with 10 additions and 16 deletions.
26 changes: 10 additions & 16 deletions .github/workflows/check-hlint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,22 +19,16 @@ jobs:

steps:

- name: Install Nix
uses: cachix/install-nix-action@v18
with:
# Use last stable nixos channel and the same nix as in channel:
install_url: https://releases.nixos.org/nix/nix-2.11.1/install
nix_path: nixpkgs=channel:nixos-22.11
github_access_token: ${{ secrets.GITHUB_TOKEN }}
extra_nix_config: |
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
experimental-features = nix-command flakes
allow-import-from-derivation = true
substituters = https://cache.nixos.org https://cache.iog.io
trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
- uses: actions/checkout@v2

- name: Run hlint
- name: Install dependencies
run: |
nix build -L '.#checks/hlint'
sudo apt-get -y install libtinfo5
- name: 'Set up HLint'
uses: rwe/actions-hlint-setup@v1
with:
version: 3.3

- name: 'Run HLint'
uses: rwe/actions-hlint-run@v2

0 comments on commit 5681b2d

Please sign in to comment.