mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-10-25 09:34:18 +08:00
33 lines
972 B
YAML
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
|