File tree 7 files changed +39
-74
lines changed
7 files changed +39
-74
lines changed Original file line number Diff line number Diff line change 9
9
jobs :
10
10
build :
11
11
runs-on : ubuntu-latest
12
-
13
12
steps :
14
- - uses : actions/checkout@v2
13
+ - uses : actions/checkout@v4
15
14
16
- - name : Set up PureScript toolchain
15
+ - name : Set up a PureScript toolchain
17
16
uses : purescript-contrib/setup-purescript@main
18
17
with :
19
- purescript : " unstable "
18
+ purescript : " latest "
20
19
purs-tidy : " latest"
20
+ spago : " unstable"
21
21
22
22
- name : Cache PureScript dependencies
23
- uses : actions/cache@v2
23
+ uses : actions/cache@v4
24
24
with :
25
- key : ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall ') }}
25
+ key : ${{ runner.os }}-spago-${{ hashFiles('**/spago.lock ') }}
26
26
path : |
27
27
.spago
28
28
output
29
29
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 --ensure-ranges --pedantic-packages
52
32
53
33
- name : Run tests
54
- run : npm run test
34
+ run : spago test --offline --censor-stats --strict --pedantic-packages -- --censor-codes=UserDefinedWarning
55
35
56
- - name : Check formatting
36
+ - name : Verify formatting
57
37
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
Original file line number Diff line number Diff line change 15
15
"repository" : {
16
16
"type" : " git" ,
17
17
"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"
30
18
}
31
19
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"private" : true ,
3
3
"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 "
6
6
},
7
7
"devDependencies" : {
8
- "eslint" : " ^7.10 .0" ,
9
- "purescript-psa" : " ^0.8.2 "
8
+ "eslint" : " ^9.12 .0" ,
9
+ "purescript-psa" : " ^0.9.0 "
10
10
}
11
11
}
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
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.
You can’t perform that action at this time.
0 commit comments