Merge IOHK fork #206
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# adapted from https://github.com/purescript-contrib/purescript-argonaut-generic/blob/d211820cfec5c7cf2caa20dc6dc293671949b55c/.github/workflows/ci.yml | |
name: Purescript example | |
on: | |
push: | |
branches: | |
- '**' | |
paths-ignore: [] | |
pull_request: | |
paths-ignore: [] | |
jobs: | |
build: | |
runs-on: ubuntu-20.04 | |
defaults: | |
run: | |
working-directory: ./example | |
steps: | |
- uses: actions/checkout@v2 | |
# - name: Set up a PureScript toolchain | |
# uses: purescript-contrib/setup-purescript@main | |
# with: # https://github.com/purescript-contrib/setup-purescript#specify-versions | |
# spago: "latest" | |
# purescript: "0.15.13" | |
- name: Set up new Spago | |
run: npm install -g spago@next purescript | |
- name: Cache PureScript dependencies | |
uses: actions/cache@v2 | |
with: | |
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }} | |
path: | | |
.spago | |
output | |
- name: Install dependencies | |
run: | | |
npm install -g esbuild | |
spago install | |
- name: Build source | |
run: spago build | |
- name: Bundle app | |
run: spago bundle --bundle-type app --outfile static/index.js | |
- name: Run tests | |
run: spago test |