Skip to content

Commit bd5a68e

Browse files
committed
feat: update to latest spago
1 parent 0e1c15f commit bd5a68e

File tree

5 files changed

+1361
-54
lines changed

5 files changed

+1361
-54
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,37 @@
11
name: CI
22

33
on:
4-
- push
5-
- pull_request
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
68

79
jobs:
810
build:
911
runs-on: ubuntu-latest
1012
steps:
11-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1214

13-
- uses: purescript-contrib/setup-purescript@main
14-
15-
- uses: actions/setup-node@v1
15+
- name: Set up a PureScript toolchain
16+
uses: purescript-contrib/setup-purescript@main
1617
with:
17-
node-version: "18"
18+
purescript: "latest"
19+
purs-tidy: "0.11.0" # "latest"
20+
spago: "unstable"
1821

19-
- name: Install dependencies
20-
run: |
21-
npm install -g bower
22-
npm install
23-
bower install --production
22+
- name: Cache PureScript dependencies
23+
uses: actions/cache@v4
24+
with:
25+
key: ${{ runner.os }}-spago-${{ hashFiles('**/spago.lock') }}
26+
path: |
27+
.spago
28+
output
2429
2530
- name: Build source
26-
run: npm run-script build
31+
run: spago build --censor-stats --strict --ensure-ranges --pedantic-packages
2732

2833
- name: Run tests
29-
run: |
30-
bower install
31-
npm run-script test --if-present
34+
run: spago test --offline --censor-stats --strict --pedantic-packages
35+
36+
- name: Verify formatting
37+
run: purs-tidy check src test

bower.json

Lines changed: 0 additions & 30 deletions
This file was deleted.

package.json

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,12 @@
11
{
22
"private": true,
33
"scripts": {
4-
"clean": "rimraf output && rimraf .pulp-cache",
5-
"build": "pulp build -- --censor-lib --strict",
6-
"test": "pulp test"
4+
"clean": "rimraf output .spago",
5+
"build": "spago build --strict --ensure-ranges --pedantic-packages",
6+
"test": "spago test --offline --strict --pedantic-packages"
77
},
88
"devDependencies": {
9-
"pulp": "^16.0.2",
10-
"purescript": "^0.15.12",
11-
"purescript-psa": "^0.8.2",
12-
"purs-tidy": "^0.10.0",
13-
"rimraf": "^5.0.5"
9+
"purescript-psa": "^0.9.0",
10+
"rimraf": "^6.0.1"
1411
}
1512
}

0 commit comments

Comments
 (0)