Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit be9a243

Browse files
committedOct 11, 2024·
feat: migrate to spago@next
1 parent eab370b commit be9a243

File tree

7 files changed

+43
-69
lines changed

7 files changed

+43
-69
lines changed
 

‎.github/workflows/ci.yml

+14-34
Original file line numberDiff line numberDiff line change
@@ -9,58 +9,38 @@ 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
30+
- name: Setup node and npm
31+
uses: actions/setup-node@v4
3932
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 }}-
33+
cache: npm
34+
cache-dependency-path: "**/package-lock.json"
4635

4736
- name: Install NPM dependencies
4837
run: npm install
4938

50-
- name: Build the project
51-
run: npm run build
39+
- name: Build source
40+
run: spago build --censor-stats --strict --ensure-ranges --pedantic-packages
5241

5342
- name: Run tests
54-
run: npm run test
43+
run: spago test --offline --censor-stats --strict --pedantic-packages -- --censor-codes=UserDefinedWarning
5544

56-
- name: Check formatting
45+
- name: Verify formatting
5746
run: purs-tidy check src test
58-
59-
- name: Verify Bower & Pulp
60-
run: |
61-
npm install bower pulp@16.0.0-0
62-
npx bower install
63-
npx pulp build -- --censor-lib --strict
64-
if [ -d "test" ]; then
65-
npx pulp test
66-
fi

‎bower.json

-12
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,5 @@
1515
"repository": {
1616
"type": "git",
1717
"url": "https://github.com/purescript-contrib/purescript-react.git"
18-
},
19-
"dependencies": {
20-
"purescript-effect": "^4.0.0",
21-
"purescript-exceptions": "^6.0.0",
22-
"purescript-maybe": "^6.0.0",
23-
"purescript-nullable": "^6.0.0",
24-
"purescript-prelude": "^6.0.0",
25-
"purescript-typelevel-prelude": "^7.0.0",
26-
"purescript-unsafe-coerce": "^6.0.0"
27-
},
28-
"devDependencies": {
29-
"purescript-console": "^6.0.0"
3018
}
3119
}

‎package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"private": true,
33
"scripts": {
4-
"build": "spago build --purs-args '--censor-lib --strict'",
5-
"test": "spago test --no-install"
4+
"build": "spago build --censor-stats --strict --ensure-ranges --pedantic-packages",
5+
"test": "spago test --offline"
66
},
77
"devDependencies": {
8-
"eslint": "^7.10.0",
9-
"purescript-psa": "^0.8.2"
8+
"eslint": "^9.12.0",
9+
"purescript-psa": "^0.9.0"
1010
}
1111
}

‎packages.dhall

-5
This file was deleted.

‎spago.dhall

-14
This file was deleted.

‎spago.yaml

+25
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
package:
2+
name: react
3+
description: PureScript bindings for react
4+
publish:
5+
license: MIT
6+
version: 11.0.0
7+
location:
8+
githubOwner: purescript-contrib
9+
githubRepo: purescript-react
10+
dependencies:
11+
- effect: ">=4.0.0 <5.0.0"
12+
- exceptions: ">=6.1.0 <7.0.0"
13+
- maybe: ">=6.0.0 <7.0.0"
14+
- nullable: ">=6.0.0 <7.0.0"
15+
- prelude: ">=6.0.1 <7.0.0"
16+
- typelevel-prelude: ">=7.0.0 <8.0.0"
17+
- unsafe-coerce: ">=6.0.0 <7.0.0"
18+
test:
19+
main: Test.Main
20+
dependencies:
21+
- console
22+
workspace:
23+
extraPackages: {}
24+
packageSet:
25+
registry: 60.5.0
File renamed without changes.

0 commit comments

Comments
 (0)
Please sign in to comment.