mirror of
https://github.com/bia-technologies/yaxunit.git
synced 2025-02-01 19:14:35 +02:00
Merge pull request #147 from bia-technologies/feature/139-configure-jobs
Настройка прогона тестов и стат анализа
This commit is contained in:
commit
12e34183aa
15
.github/workflows/main-build.yml
vendored
15
.github/workflows/main-build.yml
vendored
@ -2,13 +2,18 @@ name: Build and test
|
|||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [ feature/**, develop ]
|
branches: [ feature/**, develop ]
|
||||||
pull_request:
|
pull_request_target:
|
||||||
branches: [ develop ]
|
branches: [ develop ]
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
group: ${{ github.workflow }}-${{ github.ref }}
|
group: ${{ github.workflow }}-${{ github.ref }}
|
||||||
cancel-in-progress: true
|
cancel-in-progress: true
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: read
|
||||||
|
checks: write
|
||||||
|
id-token: write
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build_artifacts:
|
build_artifacts:
|
||||||
name: Build artifacts
|
name: Build artifacts
|
||||||
@ -20,7 +25,7 @@ jobs:
|
|||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
tests_linux_ru:
|
tests_linux_ru:
|
||||||
name: Test on Linux 8.3.21.1895 ru_RU
|
name: Tests Linux 8.3.21.1895 ru_RU
|
||||||
uses: ./.github/workflows/run-tests-linux.yml
|
uses: ./.github/workflows/run-tests-linux.yml
|
||||||
needs: build_artifacts
|
needs: build_artifacts
|
||||||
with:
|
with:
|
||||||
@ -29,7 +34,7 @@ jobs:
|
|||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
tests_linux_en:
|
tests_linux_en:
|
||||||
name: Test on Linux 8.3.21.1895 en_US
|
name: Tests Linux 8.3.21.1895 en_US
|
||||||
uses: ./.github/workflows/run-tests-linux.yml
|
uses: ./.github/workflows/run-tests-linux.yml
|
||||||
needs: build_artifacts
|
needs: build_artifacts
|
||||||
with:
|
with:
|
||||||
@ -40,7 +45,7 @@ jobs:
|
|||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
tests_windows_ru:
|
tests_windows_ru:
|
||||||
name: Test on Windows 8.3.21.1895 ru_RU
|
name: Tests Windows 8.3.21.1895 ru_RU
|
||||||
uses: ./.github/workflows/run-tests-windows.yml
|
uses: ./.github/workflows/run-tests-windows.yml
|
||||||
needs: build_artifacts
|
needs: build_artifacts
|
||||||
with:
|
with:
|
||||||
@ -49,7 +54,7 @@ jobs:
|
|||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
|
||||||
tests_macos_ru:
|
tests_macos_ru:
|
||||||
name: Test on MacOS 8.3.21.1895 ru_RU
|
name: Tests MacOS 8.3.21.1895 ru_RU
|
||||||
uses: ./.github/workflows/run-tests-macos.yml
|
uses: ./.github/workflows/run-tests-macos.yml
|
||||||
needs: build_artifacts
|
needs: build_artifacts
|
||||||
with:
|
with:
|
||||||
|
7
.github/workflows/run-tests-linux.yml
vendored
7
.github/workflows/run-tests-linux.yml
vendored
@ -153,14 +153,15 @@ jobs:
|
|||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
name: report-linux-${{ inputs.v8_version }}-${{ inputs.locale }}
|
name: Tests report. Linux ${{ inputs.v8_version }} ${{ inputs.locale }}
|
||||||
path: reports/*.*
|
path: reports/*.*
|
||||||
|
|
||||||
- name: Publish Test Report
|
- name: Publish Test Report
|
||||||
uses: mikepenz/action-junit-report@v3
|
uses: mikepenz/action-junit-report@v3
|
||||||
if: always()
|
if: always()
|
||||||
with:
|
with:
|
||||||
|
job_name: Tests Linux ${{ inputs.v8_version }} ${{ inputs.locale }}
|
||||||
|
check_name: Tests report. Linux ${{ inputs.v8_version }} ${{ inputs.locale }}
|
||||||
report_paths: reports/report.xml
|
report_paths: reports/report.xml
|
||||||
fail_on_failure: ${{ inputs.fail_on_failure }}
|
fail_on_failure: ${{ inputs.fail_on_failure }}
|
||||||
require_passed_tests: ${{ inputs.fail_on_failure }}
|
require_passed_tests: true
|
||||||
update_check: true
|
|
5
.github/workflows/sq.yml
vendored
5
.github/workflows/sq.yml
vendored
@ -43,7 +43,8 @@ jobs:
|
|||||||
-Dsonar.host.url=https://sonar.openbsl.ru
|
-Dsonar.host.url=https://sonar.openbsl.ru
|
||||||
-Dsonar.branch.name=${{ env.BRANCH_NAME }}
|
-Dsonar.branch.name=${{ env.BRANCH_NAME }}
|
||||||
-Dsonar.projectVersion=${{ steps.extract_version.outputs.version }}
|
-Dsonar.projectVersion=${{ steps.extract_version.outputs.version }}
|
||||||
|
-Dsonar.qualitygate.wait=true
|
||||||
|
-Dsonar.qualitygate.timeout=300
|
||||||
# Анализ проекта в SonarQube (PR)
|
# Анализ проекта в SonarQube (PR)
|
||||||
# https://docs.sonarqube.org/latest/analysis/pull-request/
|
# https://docs.sonarqube.org/latest/analysis/pull-request/
|
||||||
- name: Анализ в SonarQube (pull-request)
|
- name: Анализ в SonarQube (pull-request)
|
||||||
@ -57,3 +58,5 @@ jobs:
|
|||||||
-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.scm.revision=${{ github.event.pull_request.head.sha }}
|
-Dsonar.scm.revision=${{ github.event.pull_request.head.sha }}
|
||||||
|
-Dsonar.qualitygate.wait=true
|
||||||
|
-Dsonar.qualitygate.timeout=300
|
||||||
|
Loading…
x
Reference in New Issue
Block a user