Skip to content

[VPS-110] For assigned scenarios, show limited actions #163

[VPS-110] For assigned scenarios, show limited actions

[VPS-110] For assigned scenarios, show limited actions #163

Workflow file for this run

name: Tests
on:
push:
branches:
- master
paths-ignore:
- "docs/**"
pull_request:
paths-ignore:
- "docs/**"
jobs:
unit-tests-frontend:
name: Run unit tests frontend
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./frontend
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 14
# Installs dev dependencies
- name: Install dev dependencies
run: yarn install
- name: Run build
run: yarn run build --if-present
- name: Run tests
run: yarn test
unit-tests-backend:
name: Run unit tests backend
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./backend
steps:
- name: Check out Git repository
uses: actions/checkout@v2
- uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Set up Node.js
uses: actions/setup-node@v1
with:
node-version: 14
# Installs dev dependencies
- name: Install dev dependencies
run: yarn install
- name: Run tests
run: yarn test