Skip to content

Commit f8787e7

Browse files
author
Serhii Khoma
committed
feat: migrate to spago@next
1 parent 68da81d commit f8787e7

File tree

6 files changed

+46
-83
lines changed

6 files changed

+46
-83
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -9,56 +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

16-
- name: Set up PureScript toolchain
15+
- 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: Set up Node toolchain
31-
uses: actions/setup-node@v2
32-
with:
33-
node-version: "14.x"
34-
35-
- name: Cache NPM dependencies
36-
uses: actions/cache@v2
37-
env:
38-
cache-name: cache-node-modules
39-
with:
40-
path: ~/.npm
41-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
42-
restore-keys: |
43-
${{ runner.os }}-build-${{ env.cache-name }}-
44-
${{ runner.os }}-build-
45-
${{ runner.os }}-
46-
47-
- name: Install NPM dependencies
48-
run: npm install
49-
50-
- name: Build the project
51-
run: npm run build
30+
- name: Build source
31+
run: spago build --censor-stats --strict --pedantic-packages
5232

5333
- name: Run tests
54-
run: npm run test
34+
run: spago test --offline --censor-stats --strict --pedantic-packages -- --censor-codes=UserDefinedWarning
5535

56-
- name: Check formatting
36+
- name: Verify formatting
5737
run: purs-tidy check src test
58-
59-
- name: Verify Bower & Pulp
60-
run: |
61-
npm install bower [email protected]
62-
npx bower install
63-
npx pulp build -- --censor-lib --strict
64-
npx pulp test

bower.json

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,5 @@
2525
"test",
2626
"bower.json",
2727
"package.json"
28-
],
29-
"dependencies": {
30-
"purescript-arrays": "^7.0.0",
31-
"purescript-control": "^6.0.0",
32-
"purescript-either": "^6.0.0",
33-
"purescript-foreign-object": "^4.0.0",
34-
"purescript-functions": "^6.0.0",
35-
"purescript-gen": "^4.0.0",
36-
"purescript-maybe": "^6.0.0",
37-
"purescript-nonempty": "^7.0.0",
38-
"purescript-prelude": "^6.0.0",
39-
"purescript-strings": "^6.0.0",
40-
"purescript-tailrec": "^6.0.0"
41-
},
42-
"devDependencies": {
43-
"purescript-quickcheck": "^8.0.1"
44-
}
28+
]
4529
}

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"private": true,
33
"scripts": {
4-
"build": "eslint src && spago build --purs-args '--censor-lib --strict'",
5-
"test": "spago test --no-install"
4+
"build": "eslint src && spago build --censor-stats --strict --pedantic-packages",
5+
"test": "spago test --offline"
66
},
77
"devDependencies": {
8-
"eslint": "^7.6.0"
8+
"eslint": "^9.12.0"
99
}
1010
}

packages.dhall

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

spago.dhall

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

spago.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
package:
2+
name: argonaut-core
3+
publish:
4+
license: MIT
5+
version: 7.0.0
6+
location:
7+
githubOwner: purescript-contrib
8+
githubRepo: purescript-argonaut-core
9+
dependencies:
10+
- arrays
11+
- control
12+
- either
13+
- foreign-object
14+
- functions
15+
- gen
16+
- maybe
17+
- nonempty
18+
- prelude
19+
- strings
20+
- tailrec
21+
test:
22+
main: Test.Main
23+
dependencies:
24+
- console
25+
- effect
26+
- partial
27+
- quickcheck
28+
- tuples
29+
workspace:
30+
extraPackages: {}
31+
packageSet:
32+
registry: 60.5.0

0 commit comments

Comments
 (0)