Skip to content

Merge IOHK fork

Merge IOHK fork #201

Workflow file for this run

# 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