mirror of
https://github.com/BlizD/Tasks.git
synced 2025-03-17 20:58:01 +02:00
Merge pull request #322 from nixel2007/patch-4
Обновлены настройки таски сонара
This commit is contained in:
commit
68ddac3659
11
.github/workflows/sonar-scanner.yml
vendored
11
.github/workflows/sonar-scanner.yml
vendored
@ -19,15 +19,16 @@ jobs:
|
||||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v4
|
||||
with:
|
||||
fetch-depth: ''
|
||||
- run: |
|
||||
git fetch --prune --unshallow
|
||||
- name: Set up JDK 11
|
||||
uses: actions/setup-java@v1
|
||||
- name: Set up JDK 17
|
||||
uses: actions/setup-java@v4
|
||||
with:
|
||||
java-version: 11
|
||||
java-version: 17
|
||||
distribution: 'temurin'
|
||||
- name: Setup SonarQube scanner
|
||||
uses: warchant/setup-sonar-scanner@v1
|
||||
- name: Run SonarQube on push
|
||||
@ -36,7 +37,6 @@ jobs:
|
||||
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
|
||||
-Dsonar.host.url=https://sonar.openbsl.ru
|
||||
-Dsonar.branch.name=${GITHUB_REF#refs/heads/}
|
||||
-Dsonar.bsl.languageserver.enabled=true
|
||||
- name: Run SonarQube on pull request
|
||||
if: github.event_name == 'pull_request'
|
||||
run: sonar-scanner
|
||||
@ -46,4 +46,3 @@ jobs:
|
||||
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
|
||||
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }}
|
||||
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}
|
||||
-Dsonar.bsl.languageserver.enabled=true
|
||||
|
Loading…
x
Reference in New Issue
Block a user