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
|
2023-06-23 10:36:02 +03:00
|
|
|
uses: actions/checkout@v3
|
2021-02-07 21:18:14 +03:00
|
|
|
- name: Setup Node.js
|
2023-06-23 10:35:36 +03:00
|
|
|
uses: actions/setup-node@v3
|
2021-02-07 21:18:14 +03:00
|
|
|
with:
|
2022-11-15 11:41:14 +03:00
|
|
|
node-version: '18'
|
2021-02-07 21:18:14 +03:00
|
|
|
- name: Build Node.js cache
|
2023-06-23 10:36:12 +03:00
|
|
|
uses: actions/cache@v3
|
2021-01-27 15:24:23 +03:00
|
|
|
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
|