-
Notifications
You must be signed in to change notification settings - Fork 49
51 lines (41 loc) · 1.25 KB
/
purescript.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
# 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