From 01fc982b2394239a2241b6422eabb46d986c0886 Mon Sep 17 00:00:00 2001 From: alkoleft Date: Mon, 26 Aug 2024 15:27:03 +0300 Subject: [PATCH] ci: fix sq analyze --- .github/workflows/sq.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sq.yml b/.github/workflows/sq.yml index 482401e3e..4a6bf088e 100644 --- a/.github/workflows/sq.yml +++ b/.github/workflows/sq.yml @@ -25,6 +25,12 @@ jobs: run: | echo "::set-env name=PATH::/opt/sonar-scanner/bin:$PATH" + - name: Install java 11 + uses: actions/setup-java@v3 + with: + distribution: 'temurin' # See 'Supported distributions' for available options + java-version: '11' + - name: Extract version if: github.event_name == 'push' shell: bash @@ -33,7 +39,7 @@ jobs: - name: Setup sonarqube uses: warchant/setup-sonar-scanner@v8 - + # Анализ проекта в SonarQube (ветка) - name: Анализ в SonarQube (${{ github.ref_name }}) if: github.event_name == 'push'