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 b7c4948 commit 08d4fc1
Show file tree
Hide file tree
Showing 5 changed files with 52 additions and 10 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
18 changes: 12 additions & 6 deletions .github/workflows/step-run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,18 +78,24 @@ jobs:
ibcmd infobase create --db-path=file-db --load=binary/configuration.cf --apply --force
timeout-minutes: 5

- name: Загрузка расширения YAxUnit
uses: alkoleft/yaxunit/.github/actions/load-extension@develop
with:
name: YAXUNIT
path: binary/yaxunit.cfe

- name: Загрузка расширения c тестами
uses: alkoleft/yaxunit/.github/actions/load-extension@develop
with:
name: tests
path: binary/tests.cfe

- name: Загрузка расширения c дымовыми тестами
uses: alkoleft/yaxunit/.github/actions/load-extension@develop
with:
name: Smoke
path: binary/smoke.cfe

- name: Загрузка расширения YAxUnit
uses: alkoleft/yaxunit/.github/actions/load-extension@develop
with:
name: YAXUNIT
path: binary/yaxunit.cfe

- name: Создание файла конфигурации тестирования
uses: DamianReeves/write-file-action@master
with:
Expand Down
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,4 +35,5 @@ tests/.settings/*
#wsdl
/fixtures/wsdl
documentation/api/
documentation/bsldoc.jar
*.jar
/tools/**/distr/

0 comments on commit 08d4fc1

Please sign in to comment.