File tree 4 files changed +67
-23
lines changed
4 files changed +67
-23
lines changed Original file line number Diff line number Diff line change
1
+ name : CI
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+ pull_request :
7
+ branches : [main]
8
+
9
+ jobs :
10
+ build :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - uses : actions/checkout@v2
15
+
16
+ - name : Set up PureScript toolchain
17
+ uses :
purescript-contrib/[email protected]
18
+ with :
19
+ purescript : " 0.15.0"
20
+ purs-tidy : " latest"
21
+
22
+ - name : Cache PureScript dependencies
23
+ uses : actions/cache@v2
24
+ with :
25
+ key : ${{ runner.os }}-spago-${{ hashFiles('**/*.dhall') }}
26
+ path : |
27
+ .spago
28
+ output
29
+ - name : Set up Node toolchain
30
+ uses : actions/setup-node@v2
31
+ with :
32
+ node-version : " 14.x"
33
+
34
+ - name : Cache NPM dependencies
35
+ uses : actions/cache@v2
36
+ env :
37
+ cache-name : cache-node-modules
38
+ with :
39
+ path : ~/.npm
40
+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
41
+ restore-keys : |
42
+ ${{ runner.os }}-build-${{ env.cache-name }}-
43
+ ${{ runner.os }}-build-
44
+ ${{ runner.os }}-
45
+ - name : Install NPM dependencies
46
+ run : npm install
47
+
48
+ - name : Build the project
49
+ run : npm run build
50
+
51
+ - name : Run tests
52
+ run : npm run test
53
+
54
+ # - name: Check formatting
55
+ # run: purs-tidy check src test
56
+
57
+ - name : Verify Bower & Pulp
58
+ run : |
59
+ npm install bower [email protected]
60
+ npx bower install
61
+ npx pulp build -- --censor-lib --strict
62
+ if [ -d "test" ]; then
63
+ npx pulp test
64
+ fi
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 24
24
"react" : " ^18.1.0"
25
25
},
26
26
"scripts" : {
27
- "deps" : " run-s deps:*" ,
28
- "deps:spago" : " spago install" ,
29
- "deps:pulp" : " bower install" ,
30
- "build" : " run-s build:*" ,
31
- "build:spago" : " spago build" ,
32
- "build:pulp" : " pulp build -o output-pulp" ,
27
+ "build" : " spago build" ,
33
28
"clean" : " rm -rf .spago bower_components output output-pulp node_modules"
34
29
}
35
30
}
Original file line number Diff line number Diff line change 1
1
let upstream =
2
- https:// github. com/ purescript/ package- sets/ releases/ download/ psc- 0.15 . 0 - 20220510 / packages. dhall
3
- sha256: 0b0 d4db1f2f0acd3b37fa53220644ac6f64cf9b5d0226fd097c0593df563d5be
2
+ https:// github. com/ purescript/ package- sets/ releases/ download/ psc- 0.15 . 0 - 20220513 / packages. dhall
3
+ sha256: 1 ed784f37ae6131d99acd542d058d5ce39954ccaacc3adba5cc7cf1549d2bffa
4
4
5
5
in upstream
You can’t perform that action at this time.
0 commit comments