From 50e2a31dfe17733f62a595db2d4f6a0d56c0b8db Mon Sep 17 00:00:00 2001 From: Niall Farrell Date: Wed, 20 Sep 2023 16:55:12 +0100 Subject: [PATCH 1/2] Update sonar-project.properties --- sonar-project.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 From 7518fc9f97869dadaad4aa5de3c7f2bd9789d691 Mon Sep 17 00:00:00 2001 From: Niall Farrell Date: Wed, 20 Sep 2023 17:06:06 +0100 Subject: [PATCH 2/2] Update release.yml --- .github/workflows/release.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) 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: