mirror of
https://github.com/1C-Company/v8-code-style.git
synced 2025-04-24 08:32:35 +02:00
Merge branch 'master' into edt-2023-3
This commit is contained in:
commit
98b4b5f55b
29
.github/workflows/build.yml
vendored
29
.github/workflows/build.yml
vendored
@ -51,6 +51,13 @@ jobs:
|
|||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-maven-latest-
|
${{ runner.os }}-maven-latest-
|
||||||
|
|
||||||
|
- name: Build with Maven
|
||||||
|
working-directory: ./
|
||||||
|
run: |
|
||||||
|
Xvfb :5 -screen 0 1280x1024x8 -fbdir /tmp &
|
||||||
|
export DISPLAY=:5
|
||||||
|
mvn clean verify -PSDK,find-bugs -Dtycho.localArtifacts=ignore -B -V
|
||||||
|
|
||||||
- name: Cache SonarCloud packages
|
- name: Cache SonarCloud packages
|
||||||
uses: actions/cache@v2
|
uses: actions/cache@v2
|
||||||
if: inputs.analyze
|
if: inputs.analyze
|
||||||
@ -59,19 +66,22 @@ jobs:
|
|||||||
key: ${{ runner.os }}-sonar
|
key: ${{ runner.os }}-sonar
|
||||||
restore-keys: ${{ runner.os }}-sonar
|
restore-keys: ${{ runner.os }}-sonar
|
||||||
|
|
||||||
- name: Build with Maven
|
- name: Set up JDK 17
|
||||||
|
if: inputs.analyze
|
||||||
|
uses: actions/setup-java@v1
|
||||||
|
with:
|
||||||
|
java-version: 17
|
||||||
|
java-package: jdk
|
||||||
|
|
||||||
|
- name: Sonar scan
|
||||||
|
# Do not start Sonar-scanning for forks without label, and pass fork PR number directly
|
||||||
|
if: inputs.analyze
|
||||||
env:
|
env:
|
||||||
# Do not start Sonar-scanning for forks without label, and pass fork PR number directly
|
|
||||||
SONAR_PARAM: "${{ inputs.analyze && format('{0}{1}', 'org.sonarsource.scanner.maven:sonar-maven-plugin:sonar', env.PR_NUMBER) || '' }}"
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
|
||||||
SONAR_TOKEN: ${{ secrets.sonar_token }}
|
SONAR_TOKEN: ${{ secrets.sonar_token }}
|
||||||
working-directory: ./
|
working-directory: ./
|
||||||
run: |
|
run: mvn compile org.sonarsource.scanner.maven:sonar-maven-plugin:sonar ${{ env.PR_NUMBER }} -Dtycho.localArtifacts=ignore -B -V
|
||||||
Xvfb :5 -screen 0 1280x1024x8 -fbdir /tmp &
|
|
||||||
export DISPLAY=:5
|
|
||||||
echo "Sonar param: \"${SONAR_PARAM}\""
|
|
||||||
mvn clean verify ${SONAR_PARAM} -PSDK,find-bugs -Dtycho.localArtifacts=ignore -B -V
|
|
||||||
|
|
||||||
- name: Publish Test Report
|
- name: Publish Test Report
|
||||||
uses: scacap/action-surefire-report@v1
|
uses: scacap/action-surefire-report@v1
|
||||||
if: inputs.analyze
|
if: inputs.analyze
|
||||||
@ -96,7 +106,6 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
name: jacoco
|
name: jacoco
|
||||||
path: |
|
path: |
|
||||||
./**/target/jacoco.exec
|
|
||||||
./**/target/site/jacoco*/
|
./**/target/site/jacoco*/
|
||||||
|
|
||||||
- name: Upload test logs on failure
|
- name: Upload test logs on failure
|
||||||
|
Loading…
x
Reference in New Issue
Block a user