@@ -8,10 +8,33 @@ jobs:
88 runs-on: ubuntu-latest
99
1010 steps:
11− - uses: actions/checkout@v2
12− - uses: actions/setup-node@v1
13− - run: npm install -g purescript
14− - run: npm install -g spago
15− - name: build
16− run: |
17− spago -x test.dhall test
11+ # https://github.com/cachix/install-nix-action
12+ - uses: actions/checkout@v2.3.4
13+ - uses: cachix/install-nix-action@v13
14+ with:
15+ nix_path: nixpkgs=channel:nixos-unstable
16+ - run: nix-shell --command 'spago -x test.dhall test'
17+
18+ # https://github.com/purescript-contrib/setup-purescript
19+
20+ # - uses: actions/checkout@v2
21+ # - name: Set up a PureScript toolchain
22+ # uses: purescript-contrib/setup-purescript@main
23+ # with:
24+ # purescript: "0.14.1"
25+ # spago: "0.20.1"
26+
27+# - name: Cache PureScript dependencies
28+# uses: actions/cache@v2
29+# # This cache uses the .dhall files to know when it should reinstall
30+# # and rebuild packages. It caches both the installed packages from
31+# # the `.spago` directory and compilation artifacts from the `output`
32+# # directory. When restored the compiler will rebuild any files that
33+# # have changed. If you do not want to cache compiled output, remove
34+# # the `output` path.
35+# with:
36+# key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
37+# path: |
38+# .spago
39+
40+ # - run: spago -x test.dhall test