Skip to content

Commit

Permalink
various minor updates (rescript, npm, gentle peerdeps,...)
Browse files Browse the repository at this point in the history
  • Loading branch information
MoOx committed May 27, 2022
1 parent 4e85ccd commit 7dbe8ac
Show file tree
Hide file tree
Showing 7 changed files with 18,652 additions and 1,561 deletions.
40 changes: 18 additions & 22 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,25 @@
name: Build

on: [push]
on: [push, pull_request]

jobs:
build:
tests:
runs-on: ubuntu-latest

strategy:
matrix:
node-version:
- 14.x
- 16.x

steps:
- uses: actions/checkout@v1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version-file: ".node-version"

- uses: actions/cache@v2
with:
node-version: ${{ matrix.node-version }}
- name: Install
run: |
yarn install \
--non-interactive \
--frozen-lockfile
- name: Test
run: yarn test
env:
CI: true
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- run: npm install -g npm && npm --version

- run: npm ci

- run: npm test
3 changes: 0 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@
# node
node_modules

# npm unused lock file (we use yarn.lock)
package-lock.json

# ReScript artifacts
# *.bs.js # we do want this files to ensure zero-cost
.bsb.lock
Expand Down
2 changes: 1 addition & 1 deletion .node-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
12
16
Loading

0 comments on commit 7dbe8ac

Please sign in to comment.