Skip to content

Commit d89175c

Browse files
committed
Github workflow
1 parent 2db2374 commit d89175c

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/ci.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: CI
2+
3+
on: push
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v2
10+
11+
- uses: purescript-contrib/setup-purescript@main
12+
with:
13+
purescript: "0.15.4"
14+
15+
- name: Cache PureScript dependencies
16+
uses: actions/cache@v2
17+
# This cache uses the .dhall files to know when it should reinstall
18+
# and rebuild packages. It caches both the installed packages from
19+
# the `.spago` directory and compilation artifacts from the `output`
20+
# directory. When restored the compiler will rebuild any files that
21+
# have changed. If you do not want to cache compiled output, remove
22+
# the `output` path.
23+
with:
24+
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
25+
path: |
26+
.spago
27+
output
28+
- name: Build and test
29+
run: spago build && spago -x test.dhall test --no-install

0 commit comments

Comments
 (0)