Run playground tests on PRs without deploying to GitHub Pages. (#148)

This commit is contained in:
David Himmelstrup 2020-09-03 15:32:41 +08:00 committed by GitHub
commit fb868cab9b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 86 additions and 34 deletions

View file

@ -81,14 +81,16 @@ jobs:
\"color\": \"success\" \
}" > hpc/haddock_badge.json
# Is there a way to reuse the script from playground.yml?
- name: Playground
run: |
sudo apt-get -y install texlive texlive-latex-base texlive-latex-extra
CWD=`pwd`
stack build
cd playground
stack build
# We need to install latex before we can generate the snippets.
# stack exec --cwd ../ playground snippets playground/snippets > viewer-elm/dist/snippets.js
stack exec --cwd ../ playground snippets playground/snippets > viewer-elm/dist/snippets.js
cd viewer-elm
npm install
npm run build