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'
63 # Necessary for doctest to be found in $PATH
64 export PATH="$HOME/.cabal/bin:$PATH"
66 DOCTEST="cabal repl --with-ghc=doctest --ghc-options=-w"
67 (cd servant && eval $DOCTEST)
68 (cd servant-client && eval $DOCTEST)
69 (cd servant-client-core && eval $DOCTEST)
70 (cd servant-http-streams && eval $DOCTEST)
71 (cd servant-docs && eval $DOCTEST)
72 (cd servant-foreign && eval $DOCTEST)
73 (cd servant-server && eval $DOCTEST)
74 (cd servant-machines && eval $DOCTEST)
75 (cd servant-conduit && eval $DOCTEST)
76 (cd servant-pipes && eval $DOCTEST)
79 name: stack / ghc ${{ matrix.ghc }}
80 runs-on: ubuntu-latest
87 - uses: actions/checkout@v2
89 - uses: haskell/actions/setup@v1
90 name: Setup Haskell Stack
92 ghc-version: ${{ matrix.ghc }}
93 stack-version: ${{ matrix.stack }}
95 - uses: actions/cache@v2.1.3
99 key: ${{ runner.os }}-${{ matrix.ghc }}-stack
101 - name: Install dependencies
103 stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks --only-dependencies
107 stack build --system-ghc --test --bench --no-run-tests --no-run-benchmarks
111 stack test --system-ghc
114 name: ubuntu-latest / ghcjs 8.6
115 runs-on: "ubuntu-latest"
118 - uses: actions/checkout@v2
119 - uses: cachix/install-nix-action@v13
122 trusted-public-keys = ryantrinkle.com-1:JJiAKaRv9mWgpVAz8dwewnZe0AzzEAzPkagE9SP5NWI=1aba6f367982bd6dd78ec2fda75ab246a62d32c5 cache.nixos.org-1:6NCHdD59X431o0gWypbMrAURkbJ16ZPMQFGspcDShjY=
123 substituters = https://nixcache.reflex-frp.org https://cache.nixos.org/
126 # Override cabal.project with the lightweight GHCJS one
127 cp cabal.ghcjs.project cabal.project
129 nix-shell ghcjs.nix --run "cabal v2-update && cabal v2-freeze"
131 - uses: actions/cache@v2.1.3
132 name: Cache ~/.cabal/store and dist-newstyle
137 key: ${{ runner.os }}-ghcjs8.6-${{ hashFiles('cabal.project.freeze') }}
139 ${{ runner.os }}-ghcjs8.6-
143 nix-shell ghcjs.nix --run "cabal v2-build --ghcjs --enable-tests --enable-benchmarks all"
147 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