Skip to content

provide more granular way to manage embedding cache #2

provide more granular way to manage embedding cache

provide more granular way to manage embedding cache #2

name: Unit tests on Node.js
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [14.10]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Cache Node.js modules
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.OS }}-node-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.OS }}-node-
${{ runner.OS }}-
- name: Install dependencies
working-directory: ./ui
run: npm install
- name: Run tests
working-directory: ./ui
run: npm test -- --no-watch --no-progress --browsers=ChromeHeadlessCI