File tree Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Expand file tree Collapse file tree 2 files changed +12
-14
lines changed Original file line number Diff line number Diff line change @@ -40,26 +40,25 @@ jobs:
40
40
restore-keys : |
41
41
cabal-${{ runner.os }}-${{ hashFiles('cabal.project', 'default.nix', 'shell.nix') }}
42
42
43
- - name : Prepare nix shell
44
- run :
45
- nix develop --build
43
+ - name : Enter nix shell
44
+ uses : nicknovitski/nix-develop@v1
46
45
47
46
- name : Formatting
48
47
run :
49
- nix develop --command fourmolu --mode check .
48
+ fourmolu --mode check .
50
49
51
50
- name : Build
52
51
run : |
53
- nix develop --command cabal update
54
- nix develop --command cabal build all --ghc-options=-Werror
52
+ cabal update
53
+ cabal build all --ghc-options=-Werror
55
54
56
55
- name : Test
57
56
run :
58
- nix develop --command cabal test all
57
+ cabal test all
59
58
60
59
- name : Documentation (Haddock)
61
60
run : |
62
- nix develop --command .github/workflows/ci-haddock.sh
61
+ .github/workflows/ci-haddock.sh
63
62
64
63
- name : Upload Documentation
65
64
uses : actions/upload-artifact@v4
Original file line number Diff line number Diff line change @@ -34,19 +34,18 @@ jobs:
34
34
key : |
35
35
cabal-${{ runner.os }}-${{ hashFiles('cabal.project', 'default.nix', 'shell.nix') }}
36
36
37
- - name : Prepare nix shell
38
- run :
39
- nix develop --build
37
+ - name : Enter nix shell
38
+ uses : nicknovitski/nix-develop@v1
40
39
41
40
- name : Cabal check
42
41
run : |
43
42
cd quickcheck-dynamic
44
- nix develop --command cabal check
43
+ cabal check
45
44
46
45
- name : Package
47
46
run : |
48
- nix develop --command cabal sdist quickcheck-dynamic
49
- nix develop --command cabal haddock --haddock-for-hackage quickcheck-dynamic
47
+ cabal sdist quickcheck-dynamic
48
+ cabal haddock --haddock-for-hackage quickcheck-dynamic
50
49
51
50
- name : Get the version
52
51
id : get_version
You can’t perform that action at this time.
0 commit comments