Skip to content

Commit

Permalink
SonarCloud Config
Browse files Browse the repository at this point in the history
  • Loading branch information
crodriguez6497 authored Jun 18, 2024
1 parent 53b914a commit 341e2c4
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: SonarCloud analysis

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:

permissions:
pull-requests: read

jobs:
Analysis:
runs-on: ubuntu-latest
steps:
- name: Analyze with SonarCloud
uses: SonarSource/sonarcloud-github-action@4006f663ecaf1f8093e8e4abb9227f6041f52216
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN_CLIENT }}
with:
args:
-Dsonar.projectKey=NSWC-Crane_C-PAT
-Dsonar.organization=nswc-crane
-Dsonar.exclusions=**/node_modules/**
#-Dsonar.tests= # optional https://docs.sonarcloud.io/enriching/test-coverage/overview/
#-Dsonar.verbose=true
projectBaseDir: .

0 comments on commit 341e2c4

Please sign in to comment.