Skip to content

Commit

Permalink
Create sonarcloud.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
goran-stamenkovski-logeecom authored Oct 7, 2024
1 parent 37d8c07 commit 829e746
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/sonarcloud.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: SonarCloud analysis

on:
push:
branches: [ "master" ]
pull_request:
types: [opened, synchronize, reopened]
workflow_dispatch:

permissions:
pull-requests: read # allows SonarCloud to decorate PRs with analysis results

jobs:
SonarCloud:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Analyze with SonarCloud

uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 comments on commit 829e746

Please sign in to comment.