From 15cd6a4e4000426f73db5f36fb6b2c279a1fdce8 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/audit.yml | 5 +++++ .github/workflows/build.yml | 8 +++++++- .github/workflows/testrail.yml | 2 +- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/audit.yml b/.github/workflows/audit.yml index f057572..c146afb 100644 --- a/.github/workflows/audit.yml +++ b/.github/workflows/audit.yml @@ -36,6 +36,11 @@ jobs: name: code-coverage-report github-token: ${{ github.token }} run-id: ${{ github.event.workflow_run.id }} + path: processor/coverage/lcov.info + + - name: Test + run: | + ls -la processor/coverage - name: SonarQube Scan uses: sonarsource/sonarqube-scan-action@master 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 }}