From ecc7b25bb8d813323a3e8c0a37e71894f639540d Mon Sep 17 00:00:00 2001 From: Konstantin Skaburskas Date: Wed, 20 Aug 2025 21:57:53 +0200 Subject: [PATCH 1/3] updated sonar configs --- .github/workflows/main.yml | 2 +- sonar-project.properties | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 413bab5..1c47da9 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,7 +35,7 @@ jobs: - name: Setup Sonar Scanner uses: warchant/setup-sonar-scanner@v3 with: - version: 4.6.2.2472 + version: 5.0.2.4997 - name: Run Sonar Scanner env: diff --git a/sonar-project.properties b/sonar-project.properties index 16be172..ea81fe0 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -2,6 +2,8 @@ sonar.organization=nuvla sonar.projectKey=nuvla-parent sonar.projectName=nuvla-parent sonar.sources=project.clj +sonar.clojure.file.suffixes=.clj,.cljc +sonar.lang.patterns.clj=**/*.clj,**/*.cljc sonar.clojure.sensors.timeout=3600 sonar.clojure.eastwood.enabled=true sonar.clojure.kibit.enabled=true From 32854ea96d0335cae373af255fd61bd5384d64c2 Mon Sep 17 00:00:00 2001 From: Konstantin Skaburskas Date: Wed, 20 Aug 2025 22:05:31 +0200 Subject: [PATCH 2/3] actions cache to v4 --- .github/workflows/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 1c47da9..e378f81 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -18,7 +18,7 @@ jobs: fetch-depth: 0 - name: Cache local Maven repository - uses: actions/cache@v2 + uses: actions/cache@v4 with: path: ~/.m2/repository key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} From 28fd42c93c288f84657b18ddee011e67979adc92 Mon Sep 17 00:00:00 2001 From: Konstantin Skaburskas Date: Thu, 21 Aug 2025 11:37:49 +0200 Subject: [PATCH 3/3] udpate: plugin versions and config --- .github/workflows/main.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index e378f81..ac2f4be 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,7 +12,7 @@ jobs: job-build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # Disabling shallow clone is recommended for improving relevancy of reporting for sonar fetch-depth: 0 @@ -21,19 +21,24 @@ jobs: uses: actions/cache@v4 with: path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + key: ${{ runner.os }}-lein-${{ hashFiles('project.clj') }} restore-keys: | - ${{ runner.os }}-maven- - - name: Cache local Maven repository + ${{ runner.os }}-lein- + - name: Cache local M2 repository - name: Set up JDK 21 - uses: actions/setup-java@v3 + uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: '21' + - name: Install clojure tools + uses: DeLaGuardo/setup-clojure@13.4 + with: + lein: 2.11.2 + - name: Setup Sonar Scanner - uses: warchant/setup-sonar-scanner@v3 + uses: warchant/setup-sonar-scanner@v7 with: version: 5.0.2.4997