Skip to content

feat(frontend): migrate AppsManagement, WhatsHappening, AgentEnsemble… #374

feat(frontend): migrate AppsManagement, WhatsHappening, AgentEnsemble…

feat(frontend): migrate AppsManagement, WhatsHappening, AgentEnsemble… #374

Workflow file for this run

name: Tests
on:
push:
branches: [ main, v1.0.x ]
pull_request:
branches: [ main, v1.0.x ]
workflow_dispatch:
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
test:
name: Test & Coverage
runs-on: ubuntu-latest
env:
JWT_SECRET: test-jwt-secret
SENDGRID_API_KEY: fake-api-key
SENDGRID_FROM_EMAIL: test@example.com
FRONTEND_URL: http://localhost:3000
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: '**/package-lock.json'
- name: Install dependencies
run: |
npm ci --include=dev
cd backend
npm ci --include=dev
cd ../frontend
npm install --legacy-peer-deps
cd ..
- name: Run backend tests with coverage
run: |
cd backend
npx jest --coverage --forceExit
- name: Run frontend tests with coverage
run: |
cd frontend
npx jest --coverage --watchAll=false --forceExit
- name: Upload coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: backend/coverage/