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