Skip to content

Commit 36a7afd

Browse files
author
Serhii Khoma
committed
feat: migrate to spago@next
1 parent 1ea0203 commit 36a7afd

File tree

6 files changed

+44
-78
lines changed

6 files changed

+44
-78
lines changed

.github/workflows/ci.yml

Lines changed: 10 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -9,58 +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-
if [ -d "test" ]; then
65-
npx pulp test
66-
fi

bower.json

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,16 +14,5 @@
1414
"output",
1515
"bower.json",
1616
"package.json"
17-
],
18-
"dependencies": {
19-
"purescript-datetime": "^6.0.0",
20-
"purescript-effect": "^4.0.0",
21-
"purescript-foreign": "^7.0.0",
22-
"purescript-integers": "^6.0.0"
23-
},
24-
"devDependencies": {
25-
"purescript-assert": "^6.0.0",
26-
"purescript-console": "^6.0.0",
27-
"purescript-numbers": "^9.0.0"
28-
}
17+
]
2918
}

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 & 20 deletions
This file was deleted.

spago.yaml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
package:
2+
name: js-date
3+
publish:
4+
license: MIT
5+
version: 8.0.0
6+
location:
7+
githubOwner: purescript-contrib
8+
githubRepo: purescript-js-date
9+
dependencies:
10+
- datetime
11+
- effect
12+
- enums
13+
- foreign
14+
- functions
15+
- integers
16+
- maybe
17+
- prelude
18+
test:
19+
main: Test.Main
20+
dependencies:
21+
- assert
22+
- console
23+
- either
24+
- numbers
25+
- partial
26+
- transformers
27+
workspace:
28+
extraPackages: {}
29+
packageSet:
30+
registry: 60.5.0

0 commit comments

Comments
 (0)