Skip to content

Setup Sonar

Setup Sonar #1

Workflow file for this run

name: Sonar
on:
pull_request:
types: [ opened, synchronize, reopened ]
push:
branches:
- 'main'
concurrency:
group: ${{ github.head_ref }}
cancel-in-progress: true
jobs:
sonar:
name: Run Sonar
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: SonarCloud integration
uses: sonarsource/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}