1
0
mirror of https://github.com/bia-technologies/yaxunit.git synced 2025-01-20 18:48:36 +02:00

113 lines
3.2 KiB
YAML
Raw Normal View History

2023-08-27 02:22:08 +03:00
name: Build
2023-08-26 05:07:37 +03:00
on:
2023-08-27 02:22:08 +03:00
workflow_call:
inputs:
v8_version:
type: string
required: true
2023-08-27 02:48:38 +03:00
2023-08-27 02:22:08 +03:00
edt_version:
type: string
required: true
2023-08-27 02:48:38 +03:00
2023-08-27 02:22:08 +03:00
artifact_name:
type: string
required: true
2023-08-26 05:07:37 +03:00
jobs:
build-dev:
2023-08-27 02:48:38 +03:00
2023-08-26 05:07:37 +03:00
runs-on: ubuntu-20.04
2023-08-27 02:48:38 +03:00
2023-08-26 05:07:37 +03:00
steps:
2023-08-27 02:22:08 +03:00
2023-08-27 02:48:38 +03:00
- uses: actions/checkout@v3
2023-08-26 05:07:37 +03:00
2023-08-26 17:25:13 +03:00
- name: prepare
run: |
mkdir export
mkdir binary
mkdir file-db
mkdir reports
2023-08-26 05:07:37 +03:00
- name: install EDT
uses: IT-Medved/onec-setup-build-env-action@develop
with:
type: edt
2023-08-27 02:22:08 +03:00
edt_version: ${{ inputs.edt_version }}
2023-08-26 05:07:37 +03:00
cache: true
env:
ONEC_USERNAME: ${{ secrets.ONEC_USERNAME }}
ONEC_PASSWORD: ${{ secrets.ONEC_PASSWORD }}
timeout-minutes: 10
- name: install Onec Platform
uses: IT-Medved/onec-setup-build-env-action@develop
with:
type: onec
2023-08-27 02:22:08 +03:00
onec_version: ${{ inputs.v8_version }}
2023-08-26 05:07:37 +03:00
cache: false
env:
ONEC_USERNAME: ${{ secrets.ONEC_USERNAME }}
ONEC_PASSWORD: ${{ secrets.ONEC_PASSWORD }}
timeout-minutes: 10
- name: export configuration
uses: IT-Medved/onec-edtcli-command-action@feature/init
with:
export: true
from: fixtures/demo-configuration
to: export/configuration
2023-08-27 02:22:08 +03:00
timeout-minutes: 5
2023-08-26 05:07:37 +03:00
- name: export yaxunit extension
uses: IT-Medved/onec-edtcli-command-action@feature/init
with:
export: true
from: exts/yaxunit
to: export/yaxunit
2023-08-27 02:22:08 +03:00
timeout-minutes: 5
2023-08-26 05:07:37 +03:00
- name: export tests extension
uses: IT-Medved/onec-edtcli-command-action@feature/init
with:
export: true
from: tests
to: export/tests
2023-08-27 02:22:08 +03:00
timeout-minutes: 5
2023-08-26 05:07:37 +03:00
- name: create IB
run: ibcmd infobase create --db-path=file-db --import=export/configuration --apply --force
2023-08-27 02:22:08 +03:00
timeout-minutes: 5
2023-08-26 05:07:37 +03:00
- name: import yaxunit
run: |
ibcmd infobase config import --db-path=file-db --extension=YAXUNIT export/yaxunit
ibcmd infobase config apply --db-path=file-db --extension=YAXUNIT --force
ibcmd infobase config extension update --db-path=file-db --name=YAXUNIT --safe-mode=no --unsafe-action-protection=no
2023-08-27 02:22:08 +03:00
timeout-minutes: 5
2023-08-26 05:07:37 +03:00
- name: import tests
run: |
ibcmd infobase config import --db-path=file-db --extension=tests export/tests
ibcmd infobase config apply --db-path=file-db --extension=tests --force
ibcmd infobase config extension update --db-path=file-db --name=tests --safe-mode=no --unsafe-action-protection=no
2023-08-27 02:22:08 +03:00
timeout-minutes: 5
2023-08-26 05:07:37 +03:00
2023-08-27 02:22:08 +03:00
- name: save yaxunit
run: ibcmd infobase config save --db-path=file-db --extension=YAXUNIT binary/yaxunit.cfe
timeout-minutes: 5
2023-08-26 05:07:37 +03:00
2023-08-27 02:22:08 +03:00
- name: save yaxunit
run: ibcmd infobase config save --db-path=file-db --extension=tests binary/tests.cfe
timeout-minutes: 5
2023-08-26 05:07:37 +03:00
2023-08-27 02:22:08 +03:00
- name: save yaxunit
run: ibcmd infobase config save --db-path=file-db binary/configuration.cf
2023-08-26 05:07:37 +03:00
timeout-minutes: 5
2023-08-27 02:22:08 +03:00
2023-08-26 05:07:37 +03:00
- name: upload-artifact
uses: actions/upload-artifact@v3
with:
2023-08-27 02:22:08 +03:00
name: ${{ inputs.artifact_name }}
2023-08-26 05:07:37 +03:00
path: binary/*.*