Skip to content

Commit a5e0bbc

Browse files
committed
various minor updates (rescript, npm, gentle peerdeps,...)
1 parent 805fdd8 commit a5e0bbc

File tree

6 files changed

+18694
-1467
lines changed

6 files changed

+18694
-1467
lines changed

.github/workflows/build.yml

+17-21
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,23 @@ name: Build
33
on: [push, pull_request]
44

55
jobs:
6-
build:
6+
tests:
77
runs-on: ubuntu-latest
8-
9-
strategy:
10-
matrix:
11-
node-version:
12-
- 14.x
13-
- 16.x
14-
158
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
1915
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

.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,6 @@
66
# node
77
node_modules
88

9-
# npm unused lock file (we use yarn.lock)
10-
package-lock.json
11-
129
# ReScript artifacts
1310
# *.bs.js # we do want this files to ensure zero-cost
1411
.bsb.lock

.node-version

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
12
1+
16

0 commit comments

Comments
 (0)