1
0
mirror of https://github.com/bia-technologies/yaxunit.git synced 2025-01-08 13:06:32 +02:00
yaxunit/.github/workflows/build.yml

98 lines
2.6 KiB
YAML
Raw Normal View History

2023-08-27 01:22:08 +02:00
name: Build
2023-08-26 04:07:37 +02:00
on:
2023-08-27 01:22:08 +02:00
workflow_call:
inputs:
v8_version:
type: string
required: true
2023-08-27 01:48:38 +02:00
2023-08-27 01:22:08 +02:00
edt_version:
type: string
required: true
2023-08-27 01:48:38 +02:00
2023-08-27 01:22:08 +02:00
artifact_name:
type: string
required: true
2023-08-26 04:07:37 +02:00
jobs:
2023-08-27 02:18:44 +02:00
build:
2023-08-26 04:07:37 +02:00
runs-on: ubuntu-20.04
steps:
2023-08-27 01:48:38 +02:00
- uses: actions/checkout@v3
2023-08-26 04:07:37 +02:00
- name: install EDT
uses: IT-Medved/onec-setup-build-env-action@develop
with:
type: edt
2023-08-27 01:22:08 +02:00
edt_version: ${{ inputs.edt_version }}
2023-08-26 04:07:37 +02: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 01:22:08 +02:00
onec_version: ${{ inputs.v8_version }}
2023-08-26 04:07:37 +02:00
cache: false
env:
ONEC_USERNAME: ${{ secrets.ONEC_USERNAME }}
ONEC_PASSWORD: ${{ secrets.ONEC_PASSWORD }}
timeout-minutes: 10
2023-08-27 02:18:44 +02:00
- name: convert configuration src
2023-08-26 04:07:37 +02:00
uses: IT-Medved/onec-edtcli-command-action@feature/init
with:
export: true
from: fixtures/demo-configuration
to: export/configuration
2023-08-27 01:22:08 +02:00
timeout-minutes: 5
2023-08-26 04:07:37 +02:00
2023-08-27 02:18:44 +02:00
- name: convert yaxunit src
2023-08-26 04:07:37 +02:00
uses: IT-Medved/onec-edtcli-command-action@feature/init
with:
export: true
from: exts/yaxunit
to: export/yaxunit
2023-08-27 01:22:08 +02:00
timeout-minutes: 5
2023-08-26 04:07:37 +02:00
2023-08-27 02:18:44 +02:00
- name: convert tests src
2023-08-26 04:07:37 +02:00
uses: IT-Medved/onec-edtcli-command-action@feature/init
with:
export: true
from: tests
to: export/tests
2023-08-27 01:22:08 +02:00
timeout-minutes: 5
2023-08-26 04:07:37 +02:00
- name: create IB
run: ibcmd infobase create --db-path=file-db --import=export/configuration --apply --force
2023-08-27 01:22:08 +02:00
timeout-minutes: 5
2023-08-26 04:07:37 +02:00
- name: import yaxunit
2023-08-27 02:18:44 +02:00
run: ibcmd infobase config import --db-path=file-db --extension=YAXUNIT export/yaxunit
2023-08-27 01:22:08 +02:00
timeout-minutes: 5
2023-08-26 04:07:37 +02:00
- name: import tests
2023-08-27 02:18:44 +02:00
run: ibcmd infobase config import --db-path=file-db --extension=tests export/tests
2023-08-27 01:22:08 +02:00
timeout-minutes: 5
2023-08-26 04:07:37 +02:00
2023-08-27 13:45:22 +02:00
- run: mkdir binary -p
2023-08-27 01:22:08 +02:00
- name: save yaxunit
run: ibcmd infobase config save --db-path=file-db --extension=YAXUNIT binary/yaxunit.cfe
timeout-minutes: 5
2023-08-26 04:07:37 +02:00
2023-08-27 02:18:44 +02:00
- name: save tests
2023-08-27 01:22:08 +02:00
run: ibcmd infobase config save --db-path=file-db --extension=tests binary/tests.cfe
timeout-minutes: 5
2023-08-26 04:07:37 +02:00
2023-08-27 02:18:44 +02:00
- name: save configuration
2023-08-27 01:22:08 +02:00
run: ibcmd infobase config save --db-path=file-db binary/configuration.cf
2023-08-26 04:07:37 +02:00
timeout-minutes: 5
2023-08-27 01:22:08 +02:00
2023-08-26 04:07:37 +02:00
- name: upload-artifact
uses: actions/upload-artifact@v3
with:
2023-08-27 01:22:08 +02:00
name: ${{ inputs.artifact_name }}
2023-08-26 04:07:37 +02:00
path: binary/*.*