Skip to content

fix: test coverage added #2

fix: test coverage added

fix: test coverage added #2

Workflow file for this run

name: Build
on:
push:
branches:
- fix/sonar_testCoverage
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: SonarQube Cloud
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: 20.18.2
- name: Install dependencies
run: npm install
- name: Run tests and generate coverage
run: npm run coverage
- name: SonarQube Cloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.projectKey=AntaresSimulatorTeam_antares-datamanager-front
-Dsonar.organization=antaressimulatorteam
-Dsonar.javascript.lcov.reportPaths=coverage/lcov.info
-Dsonar.typescript.lcov.reportPaths=coverage/lcov.info