Skip to content

Commit 4ba715b

Browse files
committed
feat: migrate to spago@next
1 parent e0e3eeb commit 4ba715b

File tree

8 files changed

+1048
-54
lines changed

8 files changed

+1048
-54
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,39 +10,28 @@ jobs:
1010
build:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1414

1515
- name: Set up a PureScript toolchain
1616
uses: purescript-contrib/setup-purescript@main
1717
with:
18-
purescript: "unstable"
18+
purescript: "latest"
1919
purs-tidy: "latest"
20+
spago: "unstable"
2021

2122
- name: Cache PureScript dependencies
22-
uses: actions/cache@v2
23+
uses: actions/cache@v4
2324
with:
24-
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
25+
key: ${{ runner.os }}-spago-${{ hashFiles('**/spago.lock') }}
2526
path: |
2627
.spago
2728
output
2829
29-
- name: Install dependencies
30-
run: spago install
31-
3230
- name: Build source
33-
run: spago build --no-install --purs-args '--censor-lib --strict'
31+
run: spago build --censor-stats --strict --pedantic-packages
3432

3533
- name: Run tests
36-
run: spago test --no-install
34+
run: spago test --offline --censor-stats --strict --pedantic-packages -- --censor-codes=UserDefinedWarning
3735

38-
- name: Check formatting
36+
- name: Verify formatting
3937
run: purs-tidy check src test
40-
41-
- name: Verify Bower & Pulp
42-
run: |
43-
npm install bower pulp@16.0.0-0
44-
npx bower install
45-
npx pulp build -- --censor-lib --strict
46-
if [ -d "test" ]; then
47-
npx pulp test
48-
fi

bower.json

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -12,19 +12,5 @@
1212
"output",
1313
"bower.json",
1414
"package.json"
15-
],
16-
"dependencies": {
17-
"purescript-foldable-traversable": "^6.0.0",
18-
"purescript-maybe": "^6.0.0",
19-
"purescript-newtype": "^5.0.0",
20-
"purescript-prelude": "^6.0.0",
21-
"purescript-strings": "^6.0.0",
22-
"purescript-tuples": "^7.0.0",
23-
"purescript-js-uri": "https://github.com/purescript-contrib/purescript-js-uri.git#^3.0.0"
24-
},
25-
"devDependencies": {
26-
"purescript-assert": "^6.0.0",
27-
"purescript-console": "^6.0.0",
28-
"purescript-effect": "^4.0.0"
29-
}
15+
]
3016
}

package-lock.json

Lines changed: 6 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages.dhall

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

spago.dhall

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

0 commit comments

Comments
 (0)