File tree 4 files changed +49
-5
lines changed
4 files changed +49
-5
lines changed Original file line number Diff line number Diff line change
1
+ name : Check HLint
2
+
3
+ on :
4
+ push :
5
+
6
+ jobs :
7
+ build :
8
+ runs-on : ubuntu-latest
9
+
10
+ defaults :
11
+ run :
12
+ shell : bash
13
+
14
+ steps :
15
+
16
+ - name : Install Nix
17
+ uses : cachix/install-nix-action@v18
18
+ with :
19
+ # Use last stable nixos channel and the same nix as in channel:
20
+ install_url : https://releases.nixos.org/nix/nix-2.11.1/install
21
+ nix_path : nixpkgs=channel:nixos-22.11
22
+ github_access_token : ${{ secrets.GITHUB_TOKEN }}
23
+ extra_nix_config : |
24
+ access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
25
+ experimental-features = nix-command flakes
26
+ allow-import-from-derivation = true
27
+ substituters = https://cache.nixos.org https://cache.iog.io
28
+ trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
29
+
30
+ - uses : actions/checkout@v2
31
+
32
+ - name : Run hlint
33
+ run : |
34
+ nix build -L '.#checks/hlint'
Original file line number Diff line number Diff line change @@ -14,15 +14,18 @@ jobs:
14
14
steps :
15
15
16
16
- name : Install Nix
17
- uses : cachix/install-nix-action@v16
17
+ uses : cachix/install-nix-action@v18
18
18
with :
19
+ # Use last stable nixos channel and the same nix as in channel:
20
+ install_url : https://releases.nixos.org/nix/nix-2.11.1/install
21
+ nix_path : nixpkgs=channel:nixos-22.11
19
22
github_access_token : ${{ secrets.GITHUB_TOKEN }}
20
23
extra_nix_config : |
21
24
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
22
25
experimental-features = nix-command flakes
23
26
allow-import-from-derivation = true
24
27
substituters = https://cache.nixos.org https://cache.iog.io
25
- trusted-public-keys = iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
28
+ trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
26
29
27
30
- uses : actions/checkout@v2
28
31
Original file line number Diff line number Diff line change @@ -16,13 +16,16 @@ jobs:
16
16
- name : Install Nix
17
17
uses : cachix/install-nix-action@v18
18
18
with :
19
+ # Use last stable nixos channel and the same nix as in channel:
20
+ install_url : https://releases.nixos.org/nix/nix-2.11.1/install
21
+ nix_path : nixpkgs=channel:nixos-22.11
19
22
github_access_token : ${{ secrets.GITHUB_TOKEN }}
20
23
extra_nix_config : |
21
24
access-tokens = github.com=${{ secrets.GITHUB_TOKEN }}
22
25
experimental-features = nix-command flakes
23
26
allow-import-from-derivation = true
24
- substituters = https://cache.nixos.org https://hydra.iohk .io
25
- trusted-public-keys = iohk.cachix.org-1:DpRUyj7h7V830dp/i6Nti+NEO2/nhblbov/8MW7Rqoo= hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
27
+ substituters = https://cache.nixos.org https://cache.iog .io
28
+ trusted-public-keys = hydra.iohk.io:f/Ea+s+dFdN+3Y/G+FDgSq+a5NEWhJGzdjvKNGv0/EQ= cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
26
29
27
30
- uses : actions/checkout@v2
28
31
Original file line number Diff line number Diff line change 317
317
} ;
318
318
} ;
319
319
} ;
320
- defaultNonRequiredPaths = [ "windows.checks.cardano-tracer.cardano-tracer-test"
320
+ defaultNonRequiredPaths = [
321
+ # hlint required status is controled via the github action:
322
+ "native.checks/hlint"
323
+ #FIXME: cardano-tracer-test for windows should probably be disabled in haskell.nix config:
324
+ "windows.checks.cardano-tracer.cardano-tracer-test"
321
325
#FIXME: plutus-scripts-bench (dep of tx-generator) does not compile for windows:
322
326
"windows.tx-generator"
323
327
"windows.benchmarks.tx-generator"
You can’t perform that action at this time.
0 commit comments