Skip to content
This repository has been archived by the owner on May 8, 2024. It is now read-only.

chore(deps): update plugin org.jetbrains.kotlin.jvm to v1.9.24 #143

chore(deps): update plugin org.jetbrains.kotlin.jvm to v1.9.24

chore(deps): update plugin org.jetbrains.kotlin.jvm to v1.9.24 #143

name: SonarQube check
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
sonar_check:
name: SonarQube check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.ref }}
fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis
- name: Set up JDK 11
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 11
- name: Cache SonarQube packages
uses: actions/cache@v3
with:
path: ~/.sonar/cache
key: ${{ runner.os }}-sonar
restore-keys: ${{ runner.os }}-sonar
- name: Cache Gradle packages
uses: actions/cache@v3
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
- name: Build and analyze
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_IDE_PIPELINE_TOKEN }}
SONAR_HOST_URL: ${{ secrets.SONAR_PIPELINES_HOST_URL }}
run: ./gradlew test sonarqube