@@ -42,65 +42,36 @@ jobs:
4242
4343 - name : Prepare nix shell
4444 run :
45- nix develop --accept-flake-config --build
45+ nix develop --build
46+
47+ - name : Formatting
48+ run :
49+ nix develop --command fourmolu --mode check .
4650
4751 - name : Build
4852 run : |
49- nix develop --accept-flake-config -- command cabal update
50- nix develop --accept-flake-config -- command cabal build all --ghc-options=-Werror
53+ nix develop --command cabal update
54+ nix develop --command cabal build all --ghc-options=-Werror
5155
5256 - name : Test
5357 run :
54- nix develop --accept-flake-config --command cabal test all
55-
56- - name : Formatting
57- run :
58- nix develop --accept-flake-config --command fourmolu --mode check .
59-
60- haddock :
61- name : " Haddock & benchmarks"
62- runs-on : ubuntu-latest
63-
64- steps :
65- 66- with :
67- repository : input-output-hk/quickcheck-dynamic
68-
69- - name : Prepare nix
70- uses : cachix/install-nix-action@v22
71- with :
72- extra_nix_config : |
73- accept-flake-config = true
74-
75- - name : Github cache ~/.cabal/packages, ~/.cabal/store and dist-newstyle
76- uses : actions/cache@v4
77- with :
78- path : |
79- ~/.cabal/packages
80- ~/.cabal/store
81- dist-newstyle
82- key : |
83- cabal-${{ runner.os }}-${{ hashFiles('cabal.project', 'default.nix', 'shell.nix') }}
58+ nix develop --command cabal test all
8459
8560 - name : Documentation (Haddock)
8661 run : |
87- nix develop --accept-flake-config -- command .github/workflows/ci-haddock.sh
62+ nix develop --command .github/workflows/ci-haddock.sh
8863
89- - name : Upload build & test artifacts
64+ - name : Upload Documentation
9065 uses : actions/upload-artifact@v4
9166 with :
9267 name : haddocks
9368 path : ./docs
9469
9570 documentation :
9671 name : Documentation
97- needs : [haddock ]
72+ needs : [build-test ]
9873 runs-on : ubuntu-latest
9974 steps :
100- 101- with :
102- repository : input-output-hk/quickcheck-dynamic
103-
10475 - name : Download generated documentation
10576 uses : actions/download-artifact@v4
10677 with :
0 commit comments