Skip to content

Add GitHub Actions pipelines #1

Add GitHub Actions pipelines

Add GitHub Actions pipelines #1

Workflow file for this run

name: SonarCloud
on:
push:
branches:
- main
- master
pull_request:
types: [opened, synchronize, reopened]
jobs:
sonarcloud:
name: SonarCloud Scan
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: SonarQube Cloud Scan
uses: SonarSource/sonarqube-scan-action@v7
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
with:
args: >
-Dsonar.organization=${{ vars.SONAR_ORGANIZATION }}
-Dsonar.projectKey=${{ vars.SONAR_PROJECT_KEY }}
-Dsonar.sources=DSA,LLD,HLD
-Dsonar.exclusions=**/out/**,**/.idea/**