Skip to content

Commit

Permalink
ci(test): Подключено расширение с дымовыми тестами
Browse files Browse the repository at this point in the history
  • Loading branch information
alkoleft committed Aug 30, 2024
1 parent 7bc1cf3 commit 6f9115e
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 3 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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() }}
Expand Down
12 changes: 10 additions & 2 deletions .github/workflows/step-build-artifacts-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,26 @@ 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

- 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:
Expand Down
21 changes: 20 additions & 1 deletion .github/workflows/step-export-xml.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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:
Expand Down Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/step-run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 6f9115e

Please sign in to comment.