Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 3f9febc

Browse files
committed
use npm
1 parent 8604bdd commit 3f9febc

File tree

4 files changed

+3788
-1460
lines changed

4 files changed

+3788
-1460
lines changed

‎.github/workflows/build.yml‎

Lines changed: 15 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -3,27 +3,21 @@ 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 ci
22+
23+
- run: npm test

‎.gitignore‎

Lines changed: 0 additions & 3 deletions
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

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /