From 6f9115e12e76c9a36f2480655d51e44c4e3d4ec5 Mon Sep 17 00:00:00 2001 From: alkoleft Date: Fri, 30 Aug 2024 11:53:04 +0300 Subject: [PATCH] =?UTF-8?q?ci(test):=20=D0=9F=D0=BE=D0=B4=D0=BA=D0=BB?= =?UTF-8?q?=D1=8E=D1=87=D0=B5=D0=BD=D0=BE=20=D1=80=D0=B0=D1=81=D1=88=D0=B8?= =?UTF-8?q?=D1=80=D0=B5=D0=BD=D0=B8=D0=B5=20=D1=81=20=D0=B4=D1=8B=D0=BC?= =?UTF-8?q?=D0=BE=D0=B2=D1=8B=D0=BC=D0=B8=20=D1=82=D0=B5=D1=81=D1=82=D0=B0?= =?UTF-8?q?=D0=BC=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-release.yml | 8 +++++++ .../step-build-artifacts-windows.yml | 12 +++++++++-- .github/workflows/step-export-xml.yml | 21 ++++++++++++++++++- .github/workflows/step-run-tests.yml | 6 ++++++ 4 files changed, 44 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index d53c25614..7b9142fc2 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -57,10 +57,18 @@ jobs: run: ibcmd infobase config import --db-path=file-db --extension=YAXUNIT export/yaxunit timeout-minutes: 5 + - name: Импорт Smoke из исходников + run: ibcmd infobase config import --db-path=file-db --extension=Smoke export/smoke + timeout-minutes: 5 + - name: Сохрание расширения 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: Сохрание расширения Smoke + run: ibcmd infobase config save --db-path=file-db --extension=Smoke Smoke-${{ needs.export_to_designer.outputs.smoke_version }}.cfe + timeout-minutes: 5 + - name: Создание черновика релиза ${{ needs.export_to_designer.outputs.yaxunit_version }} uses: softprops/action-gh-release@v2 if: ${{ success() }} diff --git a/.github/workflows/step-build-artifacts-windows.yml b/.github/workflows/step-build-artifacts-windows.yml index ad2fe911d..74532cd91 100644 --- a/.github/workflows/step-build-artifacts-windows.yml +++ b/.github/workflows/step-build-artifacts-windows.yml @@ -64,6 +64,10 @@ jobs: run: ibcmd infobase config import --db-path=file-db --extension=tests export\tests timeout-minutes: 5 + - name: Импорт дымовых тестов из исходников + run: ibcmd infobase config import --db-path=file-db --extension=Smoke export\smoke + timeout-minutes: 5 + - name: Сохрание расширения YAxUnit run: ibcmd infobase config save --db-path=file-db --extension=YAXUNIT binary\yaxunit.cfe timeout-minutes: 5 @@ -71,11 +75,15 @@ jobs: - name: Сохрание расширения с тестами run: ibcmd infobase config save --db-path=file-db --extension=tests binary\tests.cfe timeout-minutes: 5 - + + - name: Сохрание расширения с дымовыми тестами + run: ibcmd infobase config save --db-path=file-db --extension=Smoke binary\smoke.cfe + timeout-minutes: 5 + - name: Сохрание тестовой конфигурации run: ibcmd infobase config save --db-path=file-db binary\configuration.cf timeout-minutes: 5 - + - name: Публикация артефактов uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/step-export-xml.yml b/.github/workflows/step-export-xml.yml index 52e2735f0..70466c5f3 100644 --- a/.github/workflows/step-export-xml.yml +++ b/.github/workflows/step-export-xml.yml @@ -17,6 +17,9 @@ on: outputs: yaxunit_version: value: ${{ jobs.export.outputs.yaxunit_version }} + + smoke_version: + value: ${{ jobs.export.outputs.smoke_version }} concurrency: group: ${{ github.workflow }}-${{ github.ref_name }}-${{ github.event.number }}-export @@ -28,6 +31,7 @@ jobs: runs-on: ubuntu-latest outputs: yaxunit_version: ${{ steps.extract_version.outputs.version }} + smoke_version: ${{ steps.extract_smoke_version.outputs.version }} steps: - name: Извлечение исходников PR @@ -41,12 +45,18 @@ jobs: if: github.event_name == 'push' uses: actions/checkout@v4 - - name: Извлечение версии проекта + - name: Извлечение версии YAxUnit uses: ./.github/actions/extract-version with: path: ./exts/yaxunit/src id: extract_version + - name: Извлечение версии Smoke + uses: ./.github/actions/extract-version + with: + path: ./exts/yaxunit/src + id: extract_smoke_version + - name: Установка 1C:EDT uses: alkoleft/onec-setup-build-env-action@develop with: @@ -87,6 +97,15 @@ jobs: timeout: 5 timeout-minutes: 10 + - name: Ковертация исходников дымовых тестов + uses: alkoleft/onec-edtcli-command-action@main + with: + export: true + from: exts/smoke + to: export/smoke + timeout: 5 + timeout-minutes: 10 + - name: Упаковка исходников в архив run: | cd export diff --git a/.github/workflows/step-run-tests.yml b/.github/workflows/step-run-tests.yml index ae2cc57ea..d734b40e7 100644 --- a/.github/workflows/step-run-tests.yml +++ b/.github/workflows/step-run-tests.yml @@ -90,6 +90,12 @@ jobs: name: tests path: binary/tests.cfe + - name: Загрузка расширения c дымовыми тестами + uses: alkoleft/yaxunit/.github/actions/load-extension@develop + with: + name: Smoke + path: binary/smoke.cfe + - name: Создание файла конфигурации тестирования uses: DamianReeves/write-file-action@master with: