File tree Expand file tree Collapse file tree 1 file changed +38
-15
lines changed Expand file tree Collapse file tree 1 file changed +38
-15
lines changed Original file line number Diff line number Diff line change 11name : Node CI
22
3- on : [push]
3+ on :
4+ push :
5+ branches : [main]
6+ pull_request :
7+ branches : [main]
48
59jobs :
610 build :
7-
811 runs-on : ubuntu-latest
912
1013 strategy :
1114 matrix :
12- node-version : [8 .x, 10 .x, 12 .x]
15+ node-version : [12 .x, 14 .x, 16.x, 18 .x]
1316
1417 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