Skip to content

Commit

Permalink
refactor: run sonar after jest
Browse files Browse the repository at this point in the history
  • Loading branch information
JBR90 committed Nov 29, 2024
1 parent 8c3dc91 commit e1e2951
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ on:
types: [opened, synchronize, reopened]
merge_group:

workflow_run:
workflows:
- Jest Tests and Coverage
types:
- completed

jobs:
sonarcloud:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -57,11 +63,6 @@ jobs:
echo "Displaying contents of coverage directories..."
find . -type d -name "coverage" -exec ls -lah {} \;
- name: List uploaded artifacts
run: |
echo "Listing uploaded artifacts..."
ls -lah artifact-check || echo "No artifacts found."
- name: Verify downloaded artifacts
run: |
echo "Verifying downloaded artifacts..."
Expand All @@ -75,6 +76,7 @@ jobs:
uses: actions/download-artifact@v3
with:
name: coverage
path: coverage

- name: SonarCloud scan
uses: sonarsource/sonarcloud-github-action@master
Expand All @@ -85,4 +87,4 @@ jobs:
args: >
-Dsonar.verbose=true
-Dsonar.projectVersion=${{ steps.app-version.outputs.version }}
-Dsonar.javascript.lcov.reportPaths=**/lcov.info
-Dsonar.javascript.lcov.reportPaths=coverage/**/lcov.info

0 comments on commit e1e2951

Please sign in to comment.