From e9c5c6fa4da22d160c058abf7c8711e34c0bb0fd Mon Sep 17 00:00:00 2001 From: Tung Huynh Date: Fri, 6 Sep 2024 14:09:49 +0700 Subject: [PATCH] fix: audit --- .github/workflows/build.yml | 8 +++++++- .github/workflows/testrail.yml | 2 +- sonar-project.properties | 2 +- 3 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7d2d4fc..2b3caa7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -41,8 +41,14 @@ jobs: - name: Run tests run: npm run test + - name: Archive junit report + uses: actions/upload-artifact@v4 + with: + name: junit-report + path: processor/junit-report.xml + - name: Archive code coverage results uses: actions/upload-artifact@v4 with: name: code-coverage-report - path: processor/junit-report.xml \ No newline at end of file + path: processor/coverage/lcov.info \ No newline at end of file diff --git a/.github/workflows/testrail.yml b/.github/workflows/testrail.yml index 2f3cf89..5f924c5 100644 --- a/.github/workflows/testrail.yml +++ b/.github/workflows/testrail.yml @@ -23,7 +23,7 @@ jobs: - name: Download code coverage results uses: actions/download-artifact@v4 with: - name: code-coverage-report + name: junit-report github-token: ${{ github.token }} run-id: ${{ github.event.workflow_run.id }} diff --git a/sonar-project.properties b/sonar-project.properties index ae8574c..0b260ae 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -2,4 +2,4 @@ sonar.projectKey=Mollie-Connector sonar.sources=processor/src sonar.sourceEncoding=UTF-8 sonar.tests=processor/tests -sonar.javascript.lcov.reportPaths=processor/coverage/lcov.info +sonar.javascript.lcov.reportPaths=lcov.info