Skip to content

chore(deps): bump the npm-dependencies group across 1 directory with … #44

chore(deps): bump the npm-dependencies group across 1 directory with …

chore(deps): bump the npm-dependencies group across 1 directory with … #44

Workflow file for this run

name: SonarCloud
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
sonarcloud:
name: Analysis
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.13'
- name: Install backend dependencies
run: |
pip install poetry
cd backend
poetry install --no-interaction
- name: Run backend tests with coverage
run: |
cd backend
poetry run pytest --cov=app --cov-branch --cov-report=xml:coverage.xml --tb=short -q
sed -i 's|<source>app</source>|<source>backend/app</source>|g' coverage.xml
- name: Setup pnpm
uses: pnpm/action-setup@v5
with:
version: 10
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '22'
cache: 'pnpm'
cache-dependency-path: frontend/pnpm-lock.yaml
- name: Install frontend dependencies
run: |
cd frontend
pnpm install --frozen-lockfile
- name: Run frontend tests with coverage
run: |
cd frontend
pnpm test:coverage
- name: SonarCloud Scan
uses: SonarSource/sonarqube-scan-action@v7
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
SONAR_HOST_URL: https://sonarcloud.io