Skip to content

Commit

Permalink
Обновлена настройка проверки sonar
Browse files Browse the repository at this point in the history
  • Loading branch information
Ivan Smirnov committed Mar 18, 2024
1 parent 3d51f63 commit b5f63a8
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/sonar.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
name: QA
name: Контроль качества

on:
push:
pull_request:
workflow_dispatch:
workflow_call:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Актуализация
uses: actions/checkout@v4
with:
# Disabling shallow clone is recommended for improving relevancy of reporting
fetch-depth: 0

- name: Compute branch name
- name: Вычисление имени ветки
uses: nelonoel/[email protected]

- name: Setup sonarqube
- name: Настройка sonar-scanner
uses: warchant/setup-sonar-scanner@v8

# Анализ проекта в SonarQube (ветка)
- name: Анализ в SonarQube (branch)
if: github.event_name == 'push'
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand Down

0 comments on commit b5f63a8

Please sign in to comment.