mirror of
https://github.com/BlizD/Tasks.git
synced 2025-03-19 21:07:53 +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
|
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: ''
|
fetch-depth: ''
|
||||||
- run: |
|
- run: |
|
||||||
git fetch --prune --unshallow
|
git fetch --prune --unshallow
|
||||||
- name: Set up JDK 11
|
- name: Set up JDK 17
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v4
|
||||||
with:
|
with:
|
||||||
java-version: 11
|
java-version: 17
|
||||||
|
distribution: 'temurin'
|
||||||
- name: Setup SonarQube scanner
|
- name: Setup SonarQube scanner
|
||||||
uses: warchant/setup-sonar-scanner@v1
|
uses: warchant/setup-sonar-scanner@v1
|
||||||
- name: Run SonarQube on push
|
- name: Run SonarQube on push
|
||||||
@ -36,7 +37,6 @@ jobs:
|
|||||||
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
|
-Dsonar.login=${{ secrets.SONAR_TOKEN }}
|
||||||
-Dsonar.host.url=https://sonar.openbsl.ru
|
-Dsonar.host.url=https://sonar.openbsl.ru
|
||||||
-Dsonar.branch.name=${GITHUB_REF#refs/heads/}
|
-Dsonar.branch.name=${GITHUB_REF#refs/heads/}
|
||||||
-Dsonar.bsl.languageserver.enabled=true
|
|
||||||
- name: Run SonarQube on pull request
|
- name: Run SonarQube on pull request
|
||||||
if: github.event_name == 'pull_request'
|
if: github.event_name == 'pull_request'
|
||||||
run: sonar-scanner
|
run: sonar-scanner
|
||||||
@ -46,4 +46,3 @@ jobs:
|
|||||||
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
|
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
|
||||||
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }}
|
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }}
|
||||||
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}
|
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}
|
||||||
-Dsonar.bsl.languageserver.enabled=true
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user