Skip to content

Commit

Permalink
Add sonar scan workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunquakes committed May 17, 2024
1 parent cdb6692 commit 4906ee1
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/sonarcloud-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: SonarCloud Scan

on:
push:
branches:
- development
- main
pull_request:
types: [opened, synchronize, reopened]

jobs:
sonarcloud:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: SonarCloud Scan
uses: sonarsource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
4 changes: 4 additions & 0 deletions sonar-project.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
sonar.organization=sunquakes
sonar.projectKey=sunquakes_electron-kits

sonar.sources=.

0 comments on commit 4906ee1

Please sign in to comment.