/
githubmirror
/
c-ares
Обзор
Документация
Войти
/
githubmirror
/
c-ares
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
.github/workflows/sonarcloud.yml
44 строки
2 KB
dependabot[bot]
ci: bump the github-actions group with 5 updates (#1266)
01 авг 2026, 06:50
Не верифицирован
01 авг 2026, 06:50
1ff6b69
Код
Авторство
О чём код?
# Copyright (C) The c-ares project and its contributors # SPDX-License-Identifier: MIT name: SonarCloud on: push: branches: - main workflow_dispatch: # pull_request: # types: [opened, synchronize, reopened] concurrency: group: ${{ github.ref }}-sonarcloud cancel-in-progress: true jobs: build: runs-on: ubuntu-latest env: BUILD_WRAPPER_OUT_DIR: build_wrapper_output_directory # Directory where build-wrapper output will be placed name: "SonarCloud: Build and analyze" steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 # Shallow clones should be disabled for a better relevancy of analysis - name: "SonarCloud: Install Build-Wrapper" uses: SonarSource/sonarqube-scan-action/install-build-wrapper@22918119ff8e1ca75a623e15c8296b6ea4fbe28f # v8.2.1 - uses: awalsh128/cache-apt-pkgs-action@553a35bb8ebd9fcabcb1c9451aa4c98e1b4ca8a9 # v1.6.3 with: packages: libgmock-dev version: 1.0 - name: Run build-wrapper run: | mkdir build cmake -DCARES_BUILD_TESTS=ON -S . -B build build-wrapper-linux-x86-64 --out-dir ${{ env.BUILD_WRAPPER_OUT_DIR }} cmake --build build/ --config Release - name: "SonareCloud: Scan" uses: SonarSource/sonarqube-scan-action@22918119ff8e1ca75a623e15c8296b6ea4fbe28f # v8.2.1 env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} with: args: > --define "sonar.cfamily.compile-commands=${{ env.BUILD_WRAPPER_OUT_DIR }}/compile_commands.json"