-
Notifications
You must be signed in to change notification settings - Fork 51
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
148 changed files
with
4,050 additions
and
1,386 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: Build release | ||
on: | ||
push: | ||
tags: | ||
- '*' | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.number }}-release | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: write | ||
|
||
jobs: | ||
export_to_designer: | ||
name: Export to designer xml | ||
uses: ./.github/workflows/step-export-xml.yml | ||
with: | ||
edt_version: 2023.1.2 | ||
artifact_name: designer-src | ||
engine_only: true | ||
secrets: inherit | ||
|
||
build_artifacts: | ||
runs-on: ubuntu-latest | ||
needs: export_to_designer | ||
|
||
steps: | ||
- name: install 8.3.21.1895 | ||
uses: alkoleft/onec-setup-build-env-action@develop | ||
with: | ||
type: onec | ||
onec_version: 8.3.21.1895 | ||
cache: true | ||
env: | ||
ONEC_USERNAME: ${{ secrets.ONEC_USERNAME }} | ||
ONEC_PASSWORD: ${{ secrets.ONEC_PASSWORD }} | ||
timeout-minutes: 10 | ||
|
||
- name: download artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: designer-src | ||
- name: extract artifacts | ||
run: | | ||
mkdir export | ||
cd export | ||
7z x ../export.7z -y | ||
- name: create IB | ||
run: ibcmd infobase create --db-path=file-db | ||
timeout-minutes: 5 | ||
|
||
- name: import yaxunit | ||
run: ibcmd infobase config import --db-path=file-db --extension=YAXUNIT export/yaxunit | ||
timeout-minutes: 5 | ||
|
||
- name: save yaxunit | ||
run: ibcmd infobase config save --db-path=file-db --extension=YAXUNIT YAxUnit-${{ needs.export_to_designer.outputs.yaxunit_version }}.cfe | ||
timeout-minutes: 5 | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
if: ${{ success() }} | ||
with: | ||
draft: true | ||
files: YAxUnit-*.cfe | ||
fail_on_unmatched_files: true | ||
generate_release_notes: true | ||
append_body: false | ||
name: Версия ${{ needs.export_to_designer.outputs.yaxunit_version }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,68 +1,67 @@ | ||
name: Build and test | ||
on: | ||
push: | ||
branches: [ feature/**, develop ] | ||
branches: | ||
- feature/** | ||
- develop | ||
|
||
pull_request_target: | ||
branches: [ develop ] | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.number }} | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event.number }}-main | ||
cancel-in-progress: true | ||
|
||
permissions: | ||
contents: read | ||
contents: write | ||
checks: write | ||
id-token: write | ||
|
||
jobs: | ||
export_to_designer: | ||
name: Export to designer xml | ||
uses: ./.github/workflows/export-xml.yml | ||
uses: ./.github/workflows/step-export-xml.yml | ||
with: | ||
edt_version: 2023.1.2 | ||
artifact_name: designer-src | ||
secrets: inherit | ||
|
||
build_artifacts: | ||
name: Build artifacts | ||
uses: ./.github/workflows/build-on-windows.yml | ||
uses: ./.github/workflows/step-build-artifacts-windows.yml | ||
needs: export_to_designer | ||
with: | ||
v8_version: 8.3.21.1895 | ||
secrets: inherit | ||
|
||
tests_linux_ru: | ||
name: Tests Linux 8.3.21.1895 ru_RU | ||
uses: ./.github/workflows/run-tests-linux.yml | ||
if: github.ref == 'refs/heads/develop' | ||
|
||
tests_windows: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
v8_version: | ||
- 8.3.21.1895 | ||
locale: | ||
- ru_RU | ||
- en_US | ||
uses: ./.github/workflows/step-run-tests-windows.yml | ||
needs: build_artifacts | ||
with: | ||
v8_version: 8.3.21.1895 | ||
v8_version: ${{ matrix.v8_version }} | ||
locale: ${{ matrix.locale }} | ||
secrets: inherit | ||
|
||
tests_linux_en: | ||
name: Tests Linux 8.3.21.1895 en_US | ||
uses: ./.github/workflows/run-tests-linux.yml | ||
if: github.ref == 'refs/heads/develop' | ||
needs: build_artifacts | ||
with: | ||
v8_version: 8.3.21.1895 | ||
locale: en_US | ||
secrets: inherit | ||
|
||
tests_windows_ru: | ||
name: Tests Windows 8.3.21.1895 ru_RU | ||
uses: ./.github/workflows/run-tests-windows.yml | ||
|
||
tests_linux: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
v8_version: | ||
- 8.3.21.1895 | ||
locale: | ||
- ru_RU | ||
- en_US | ||
uses: ./.github/workflows/step-run-tests-linux.yml | ||
needs: build_artifacts | ||
with: | ||
v8_version: 8.3.21.1895 | ||
locale: ru_RU | ||
v8_version: ${{ matrix.v8_version }} | ||
locale: ${{ matrix.locale }} | ||
secrets: inherit | ||
tests_windows_en: | ||
name: Tests Windows 8.3.21.1895 en_US | ||
uses: ./.github/workflows/run-tests-windows.yml | ||
needs: build_artifacts | ||
with: | ||
v8_version: 8.3.21.1895 | ||
locale: en_US | ||
secrets: inherit |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Анализ в SonarQube (pull-request) | ||
|
||
on: | ||
- pull_request | ||
# - pull_request_target Не поддерживается 1CDevFlow/sonar-quality-gate и sonarqube-community-branch-plugin, необходимо доработать action | ||
jobs: | ||
SonarScanner: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout PR | ||
uses: actions/checkout@v4 | ||
with: | ||
# Для поддержки pull_request и pull_request_target | ||
# https://github.com/android-password-store/Android-Password-Store/pull/1247 | ||
ref: refs/pull/${{ github.event.number }}/merge | ||
fetch-depth: 0 | ||
|
||
# https://docs.sonarqube.org/latest/analysis/pull-request/ | ||
- name: Analyze (pull-request) | ||
uses: 1CDevFlow/sonar-quality-gate@master | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
GIT_URL: "https://api.github.com" | ||
GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
SONAR_URL: https://sonar.openbsl.ru | ||
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} | ||
GITHUB_REPOSITORY: bia-technologies/yaxunit | ||
CI_MERGE_REQUEST_IID: ${{ github.event.number }} | ||
DEBUG: ${{ runner.debug }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
name: Run tests on Linux | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
artifact_name: | ||
type: string | ||
required: false | ||
default: build-artifacts | ||
|
||
permissions: | ||
contents: write | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
||
- name: download artifact | ||
uses: actions/download-artifact@v4 | ||
with: | ||
name: ${{ inputs.artifact_name }} | ||
path: binary | ||
- name: Release | ||
uses: softprops/action-gh-release@v2 | ||
with: | ||
draft: true | ||
files: binary/YAxUnit.cfe | ||
generate_release_notes: true | ||
append_body: false | ||
token: ${{ secrets.GITHUB_TOKEN }} |
Oops, something went wrong.