add workflow

This commit is contained in:
DieMyst 2020-12-22 11:08:44 +03:00
parent b79f0920d4
commit 3344c5d7a9

39
.github/workflows/js_sdk_ci.yml vendored Normal file
View File

@ -0,0 +1,39 @@
name: Node.js CI
defaults:
run:
working-directory: ./client/fluence-js
on:
push:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.x, 15.x]
steps:
- uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ matrix.node-version }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-${{ matrix.node-version }}
- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- run: npm install
- run: npm test
env:
CI: true