Skip to content

Commit 2f1912d

Browse files
committed
feat: migrate to spago@next
1 parent a1e62aa commit 2f1912d

13 files changed

+1054
-76
lines changed

Diff for: .github/workflows/ci.yml

+8-23
Original file line numberDiff line numberDiff line change
@@ -9,44 +9,29 @@ on:
99
jobs:
1010
build:
1111
runs-on: ubuntu-latest
12-
1312
steps:
14-
- uses: actions/checkout@v2
13+
- uses: actions/checkout@v4
1514

1615
- name: Set up a PureScript toolchain
1716
uses: purescript-contrib/setup-purescript@main
1817
with:
19-
purescript: "unstable"
18+
purescript: "latest"
2019
purs-tidy: "latest"
20+
spago: "unstable"
2121

2222
- name: Cache PureScript dependencies
23-
uses: actions/cache@v2
23+
uses: actions/cache@v4
2424
with:
25-
key: ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
25+
key: ${{ runner.os }}-spago-${{ hashFiles('**/spago.lock') }}
2626
path: |
2727
.spago
2828
output
2929
30-
- name: Install dependencies
31-
run: spago install
32-
3330
- name: Build source
34-
run: spago build --no-install --purs-args '--censor-lib --strict'
35-
36-
- name: Install test dependencies
37-
run: spago -x spago-test.dhall install
38-
39-
- name: Build tests
40-
run: spago -x spago-test.dhall build --no-install --purs-args '--censor-lib --strict'
31+
run: spago build --censor-stats --strict --pedantic-packages
4132

4233
- name: Run tests
43-
run: spago -x spago-test.dhall test --no-install
34+
run: spago test --offline --censor-stats --strict --pedantic-packages -- --censor-codes=UserDefinedWarning
4435

45-
- name: Check formatting
36+
- name: Verify formatting
4637
run: purs-tidy check src test
47-
48-
- name: Verify Bower & Pulp
49-
run: |
50-
npm install bower [email protected]
51-
npx bower install
52-
npx pulp build -- --censor-lib --strict

Diff for: bower.json

+12-28
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,14 @@
11
{
2-
"name": "purescript-arraybuffer",
3-
"license": [
4-
"MIT"
5-
],
6-
"repository": {
7-
"type": "git",
8-
"url": "https://github.com/purescript-contrib/purescript-arraybuffer"
9-
},
10-
"ignore": [
11-
"**/.*",
12-
"node_modules",
13-
"bower_components",
14-
"output"
15-
],
16-
"dependencies": {
17-
"purescript-arraybuffer-types": "^v3.0.2",
18-
"purescript-arrays": "^v7.2.0",
19-
"purescript-effect": "^v4.0.0",
20-
"purescript-float32": "^v2.0.0",
21-
"purescript-functions": "^v6.0.0",
22-
"purescript-gen": "^v4.0.0",
23-
"purescript-maybe": "^v6.0.0",
24-
"purescript-nullable": "^v6.0.0",
25-
"purescript-prelude": "^v6.0.1",
26-
"purescript-tailrec": "^v6.1.0",
27-
"purescript-uint": "^v7.0.0",
28-
"purescript-unfoldable": "^v6.0.0"
29-
}
2+
"name": "purescript-arraybuffer",
3+
"license": "MIT",
4+
"repository": {
5+
"type": "git",
6+
"url": "https://github.com/purescript-contrib/purescript-arraybuffer"
7+
},
8+
"ignore": [
9+
"**/.*",
10+
"node_modules",
11+
"bower_components",
12+
"output"
13+
]
3014
}

Diff for: package-lock.json

+6
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: packages.dhall

-5
This file was deleted.

Diff for: spago.dhall

-20
This file was deleted.

0 commit comments

Comments
 (0)