File tree 1 file changed +38
-15
lines changed
1 file changed +38
-15
lines changed Original file line number Diff line number Diff line change 1
1
name : Node CI
2
2
3
- on : [push]
3
+ on :
4
+ push :
5
+ branches : [main]
6
+ pull_request :
7
+ branches : [main]
4
8
5
9
jobs :
6
10
build :
7
-
8
11
runs-on : ubuntu-latest
9
12
10
13
strategy :
11
14
matrix :
12
- node-version : [8 .x, 10 .x, 12 .x]
15
+ node-version : [12 .x, 14 .x, 16.x, 18 .x]
13
16
14
17
steps :
15
- - uses : actions/checkout@v1
16
- - name : Use Node.js ${{ matrix.node-version }}
17
- uses : actions/setup-node@v1
18
- with :
19
- node-version : ${{ matrix.node-version }}
20
- - name : build
21
- run : |
22
- npm install
23
- npx bower install
24
- npm run build
25
- env :
26
- CI : true
18
+ - uses : actions/checkout@v2
19
+
20
+ - name : Set up PureScript toolchain
21
+ uses : purescript-contrib/setup-purescript@main
22
+ with :
23
+ purescript : " 0.15.0"
24
+
25
+ - name : Set up Node.js ${{ matrix.node-version }}
26
+ uses : actions/setup-node@v2
27
+ with :
28
+ node-version : ${{ matrix.node-version }}
29
+
30
+ - name : Cache NPM dependencies
31
+ uses : actions/cache@v2
32
+ env :
33
+ cache-name : cache-node-modules
34
+ with :
35
+ path : ~/.npm
36
+ key : ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
37
+ restore-keys : |
38
+ ${{ runner.os }}-build-${{ env.cache-name }}-
39
+ ${{ runner.os }}-build-
40
+ ${{ runner.os }}-
41
+
42
+ - name : Install NPM dependencies
43
+ run : npm install
44
+
45
+ - name : Install spago deps
46
+ run : npm run deps
47
+
48
+ - name : Build the project
49
+ run : npm run build
You can’t perform that action at this time.
0 commit comments