Skip to content

feat: [P4PU-384] Porting from jest to vitest #114

feat: [P4PU-384] Porting from jest to vitest

feat: [P4PU-384] Porting from jest to vitest #114

Workflow file for this run

name: 'coverage'
on:
pull_request:
branches:
- develop
- main
jobs:
sonarcloud:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install dependencies
run: yarn
- name: Generate api client
run: yarn generate
- name: Test and coverage
run: yarn coverage
- uses: davelosert/vitest-coverage-report-action@v2 # v2
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.organization=${{ vars.SONARCLOUD_ORG }}
-Dsonar.projectKey=${{ vars.SONARCLOUD_PROJECT_KEY }}
-Dsonar.projectName="${{ vars.SONARCLOUD_PROJECT_NAME }}"