3# Trigger the workflow on push or pull request, but only for the master branch
11 name: ${{ matrix.os }} / ghc ${{ matrix.ghc }}
12 runs-on: ${{ matrix.os }}
25 - uses: actions/checkout@v2
27 - uses: haskell/actions/setup@v1
28 id: setup-haskell-cabal
31 ghc-version: ${{ matrix.ghc }}
32 cabal-version: ${{ matrix.cabal }}
36 cabal configure --enable-tests --enable-benchmarks --test-show-details=direct
39 - uses: actions/cache@v2.1.3
40 name: Cache ~/.cabal/store and dist-newstyle
43 ${{ steps.setup-haskell-cabal.outputs.cabal-store }}
45 key: ${{ runner.os }}-${{ matrix.ghc }}-${{ hashFiles('cabal.project.freeze') }}
47 ${{ runner.os }}-${{ matrix.ghc }}-
51 cabal install --ignore-project -j2 doctest --constraint='doctest ^>=0.20'
62 # doctests are broken on GHC 9 due to compiler bug:
63 # https://gitlab.haskell.org/ghc/ghc/-/issues/19460
64 continue-on-error: ${{ matrix.ghc == '9.0.1' }}
66 # Necessary for doctest to be found in $PATH
67 export PATH="$HOME/.cabal/bin:$PATH"
69 DOCTEST="cabal repl --with-ghc=doctest --ghc-options=-w"
70 (cd servant && eval $DOCTEST)
71 (cd servant-client && eval $DOCTEST)
72 (cd servant-client-core && eval $DOCTEST)
73 (cd servant-http-streams && eval $DOCTEST)
74 (cd servant-docs && eval $DOCTEST)
75 (cd servant-foreign && eval $DOCTEST)
76 (cd servant-server && eval $DOCTEST)
77 (cd servant-machines && eval $DOCTEST)
78 (cd servant-conduit && eval $DOCTEST)
79 (cd servant-pipes && eval $DOCTEST)
82 name: stack / ghc ${{ matrix.ghc }}
83 runs-on: ubuntu-latest
90 - uses: actions/checkout@v2
92 - uses: haskell/actions/setup@v1
93 name: Setup Haskell Stack
95 ghc-version: ${{ matrix.ghc }}
96 stack-version: ${{ matrix.stack }}
98 - uses: actions/cache@v2.1.3
102 key: ${{ runner.os }}-${{ matrix.ghc }}-stack
104 - name: Install dependencies
106 stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks --only-dependencies
110 stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks
114 stack test --system-ghc
117 name: ubuntu-latest / ghcjs 8.6
118 runs-on: "ubuntu-latest"
121 - uses: actions/checkout@v2
122 - uses: cachix/install-nix-action@v13
125 trusted-public-keys = ryantrinkle.com-1:JJiAKaRv9mWgpVAz8dwewnZe0AzzEAzPkagE9SP5NWI=1aba6f367982bd6dd78ec2fda75ab246a62d32c5 cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
126 substituters = https://nixcache.reflex-frp.org https://cache.nixos.org/
129 # Override cabal.project with the lightweight GHCJS one
130 cp cabal.ghcjs.project cabal.project
132 nix-shell ghcjs.nix --run "cabal v2-update && cabal v2-freeze"
134 - uses: actions/cache@v2.1.3
135 name: Cache ~/.cabal/store and dist-newstyle
140 key: ${{ runner.os }}-ghcjs8.6-${{ hashFiles('cabal.project.freeze') }}
142 ${{ runner.os }}-ghcjs8.6-
146 nix-shell ghcjs.nix --run "cabal v2-build --ghcjs --enable-tests --enable-benchmarks all"
150 nix-shell ghcjs.nix --run ".github/run-ghcjs-tests.sh"
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list