Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/1sonarcloud.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: SonarCloud Scan

on:
workflow_dispatch: # allows manual trigger

jobs:
sonarcloud:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v3

- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install dependencies
run: npm install

- name: Run SonarCloud Scan
uses: SonarSource/sonarqube-scan-action@v5.0.0
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.projectKey=RADhaigude_react-projects
-Dsonar.organization=radhaigude
-Dsonar.sources=src
-Dsonar.host.url=https://sonarcloud.io