Downstream #4
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
#github action to run unit tests for frontend with jest | |
name: Frontend Unit Tests | |
on: | |
# push: | |
# branches: | |
# - main | |
# - dev | |
# - release/* | |
pull_request: | |
branches: | |
- main | |
- dev | |
- release/* | |
paths: | |
- 'client/**' | |
- 'packages/**' | |
jobs: | |
tests_frontend: | |
name: Run frontend unit tests | |
timeout-minutes: 60 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js 20.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- name: Install dependencies | |
run: npm ci | |
- name: Build Client | |
run: npm run frontend:ci | |
- name: Run unit tests | |
run: npm run test:ci --verbose | |
working-directory: client |