CB-3864 migrate tree to css modules #2100
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" | |
- name: Cache node modules | |
id: cache-npm | |
uses: actions/cache@v3 | |
env: | |
cache-name: cache-node-modules | |
with: | |
# npm cache files are stored in `~/.npm` on Linux/macOS | |
path: ~/.npm | |
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-build-${{ env.cache-name }}- | |
${{ runner.os }}-build- | |
${{ runner.os }}- | |
- if: ${{ steps.cache-npm.outputs.cache-hit != 'true' }} | |
name: List the state of node modules | |
continue-on-error: true | |
run: npm list | |
- name: Run install | |
uses: borales/actions-yarn@v4 | |
with: | |
dir: webapp | |
cmd: install | |
- name: Run lerna bootstrap | |
uses: borales/actions-yarn@v4 | |
with: | |
dir: webapp | |
cmd: lerna bootstrap | |
- name: Run pre test | |
uses: borales/actions-yarn@v4 | |
with: | |
dir: webapp | |
cmd: pretest | |
- name: Run test | |
uses: borales/actions-yarn@v4 | |
with: | |
dir: webapp | |
cmd: lerna run test |