2021-01-27 15:24:23 +03:00
|
|
|
name: Test Core Components
|
|
|
|
on:
|
2021-02-07 21:18:14 +03:00
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
2021-01-27 15:24:23 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
test-core:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-02-07 21:18:14 +03:00
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Setup Node.js
|
2021-02-07 21:27:14 +03:00
|
|
|
uses: actions/setup-node@v2
|
2021-02-07 21:18:14 +03:00
|
|
|
with:
|
|
|
|
node-version: '14'
|
|
|
|
- name: Build Node.js cache
|
2021-01-27 15:24:23 +03:00
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: ~/.npm
|
2021-02-07 21:18:14 +03:00
|
|
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
|
|
|
restore-keys: ${{ runner.os }}-node-
|
|
|
|
- name: Install dependencies
|
|
|
|
run: npm ci
|
|
|
|
- name: Run tests
|
|
|
|
run: npm run test:unit
|