diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6bdc328c..daa4d1ee 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,7 +26,7 @@ jobs: - name: Build VSIX file run: yarn run build - name: Run Tests - run: xvfb-run -a yarn run test + run: xvfb-run -a yarn run coverage - name: Packaging run: yarn run package - name: Upload artifact @@ -34,6 +34,12 @@ jobs: with: name: KDB-VSCode-Extension path: ./kdb-*vsix + - name: Upload lcov result for app-sec job + uses: actions/upload-artifact@v3 + with: + name: lcov + path: coverage-reports/lcov.info + retention-days: 1 app-sec: runs-on: ubuntu-latest @@ -52,6 +58,11 @@ jobs: - name: Install dependencies run: yarn install + - name: Download lcov result from test job + uses: actions/download-artifact@v3 + with: + name: lcov + - name: SonarCloud Scan uses: sonarsource/sonarqube-scan-action@master env: diff --git a/sonar-project.properties b/sonar-project.properties index c51299e4..fd0283b6 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -1,3 +1,3 @@ sonar.projectKey=kxvscode sonar.sources=. -sonar.javascript.lcov.reportPaths=coverage-reports/lcov.info \ No newline at end of file +sonar.javascript.lcov.reportPaths=lcov.info \ No newline at end of file