Skip to content

chore: adds the initial implementation of the SonarCloud into the CI #11

chore: adds the initial implementation of the SonarCloud into the CI

chore: adds the initial implementation of the SonarCloud into the CI #11

Workflow file for this run

name: Main
on:
push:
branches: [main]
pull_request:
jobs:
sonarcloud-scan:
runs-on: ubuntu-latest
name: Run SonarCloud Scan
steps:
- name: Checkout project sources
uses: actions/checkout@v4
- name: Setup Gradle
uses: gradle/actions/setup-gradle@db19848a5fa7950289d3668fb053140cf3028d43
with:
build-scan-publish: true
build-scan-terms-of-use-url: "https://gradle.com/terms-of-service"
build-scan-terms-of-use-agree: "yes"
- name: Run sonar
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
run: ./gradlew sonar -Dsonar.token=$SONAR_TOKEN