Files
cloudbeaver/.github/workflows/jest-tests-runner.yml
T
Alexey 56949408b1 CB- 3150 fix tests (#1559)
* CB-3150 fix: tests

* CB-3150 fix: use node v18 for tests
2023-03-21 11:32:23 +03:00

33 lines
972 B
YAML

name: Run Jest Tests
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "devel" branch
pull_request:
branches: [ "devel" ]
paths:
- 'webapp/**' # monitor for the frontend changes
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
run-jest-tests:
# The type of runner that the job will run on
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./webapp
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '18'
- run: npm install yarn -g
- run: yarn
- run: yarn lerna bootstrap
- run: yarn lerna run test