From e2ba650a5d9307b2906278b0fa494eba207e02fa Mon Sep 17 00:00:00 2001 From: xiaoyifang <105986+xiaoyifang@users.noreply.github.com> Date: Sat, 5 Aug 2023 12:52:12 +0800 Subject: [PATCH] action: sonar cloud analysis (#1039) * action: sonar cloud analysis * action: sonar cloud analysis * action: sonar cloud analysis * action: sonar cloud analysis * action: sonar cloud analysis * action:sonar cloud * action: sonar cloud analysis * action: sonar cloud analysis * action: sonar cloud * action: sonar cloud --------- Co-authored-by: YiFang Xiao --- .github/workflows/{build.yml => Sonar Cloud.yml} | 12 +++++++----- sonar-project.properties | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) rename .github/workflows/{build.yml => Sonar Cloud.yml} (92%) diff --git a/.github/workflows/build.yml b/.github/workflows/Sonar Cloud.yml similarity index 92% rename from .github/workflows/build.yml rename to .github/workflows/Sonar Cloud.yml index f811e741..577e8a6a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/Sonar Cloud.yml @@ -17,10 +17,7 @@ jobs: runs-on: ubuntu-latest env: BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory # Directory where build-wrapper output will be placed - steps: - - uses: actions/setup-python@v3 - with: - python-version: '3.9' + steps: - name: Install Qt uses: jurplel/install-qt-action@v3 with: @@ -29,7 +26,6 @@ jobs: #serialport linuxdeploy need serialport to work. modules: qtwebengine qtwebchannel qtpositioning qt5compat qtmultimedia qtimageformats qtspeech qtserialport - setup-python: 'false' - name: ubuntu install thirdparty dependencies run: | @@ -47,10 +43,16 @@ jobs: sudo make install cd .. sudo apt-get install libzim-dev + + sudo apt install openjdk-17-jdk openjdk-17-jre + java -version - uses: actions/checkout@v3 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis submodules: true + - uses: actions/setup-node@v3 + with: + node-version: 18 - name: Install sonar-scanner and build-wrapper uses: SonarSource/sonarcloud-github-c-cpp@v2 - name: Run build-wrapper diff --git a/sonar-project.properties b/sonar-project.properties index 4bf63e55..53e969ff 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -9,4 +9,4 @@ sonar.projectName=goldendict sonar.sources=. # Encoding of the source code. Default is default system encoding -sonar.sourceEncoding=UTF-8 +sonar.sourceEncoding=UTF-8 \ No newline at end of file