File tree 6 files changed +18694
-1467
lines changed
6 files changed +18694
-1467
lines changed Original file line number Diff line number Diff line change @@ -3,27 +3,23 @@ name: Build
3
3
on : [push, pull_request]
4
4
5
5
jobs :
6
- build :
6
+ tests :
7
7
runs-on : ubuntu-latest
8
-
9
- strategy :
10
- matrix :
11
- node-version :
12
- - 14.x
13
- - 16.x
14
-
15
8
steps :
16
- - uses : actions/checkout@v1
17
- - name : Use Node.js ${{ matrix.node-version }}
18
- uses : actions/setup-node@v1
9
+ - uses : actions/checkout@v2
10
+ - uses : actions/setup-node@v2
11
+ with :
12
+ node-version-file : " .node-version"
13
+
14
+ - uses : actions/cache@v2
19
15
with :
20
- node-version : ${{ matrix.node-version }}
21
- - name : Install
22
- run : |
23
- yarn install \
24
- --non-interactive \
25
- --frozen-lockfile
26
- - name : Test
27
- run : yarn test
28
- env :
29
- CI : true
16
+ path : ~/.npm
17
+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
18
+ restore-keys : |
19
+ ${{ runner.os }}-node-
20
+
21
+ - run : npm install -g npm && npm --version
22
+
23
+ - run : npm ci
24
+
25
+ - run : npm test
Original file line number Diff line number Diff line change 6
6
# node
7
7
node_modules
8
8
9
- # npm unused lock file (we use yarn.lock)
10
- package-lock.json
11
-
12
9
# ReScript artifacts
13
10
# *.bs.js # we do want this files to ensure zero-cost
14
11
.bsb.lock
Original file line number Diff line number Diff line change 1
- 12
1
+ 16
You can’t perform that action at this time.
0 commit comments