mirror of
https://github.com/fluencelabs/fluence-js.git
synced 2025-03-15 23:40:50 +00:00
40 lines
727 B
YAML
40 lines
727 B
YAML
name: Node.js CI
|
|
|
|
defaults:
|
|
run:
|
|
working-directory: .
|
|
|
|
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
|
|
|
|
|