mirror of
https://github.com/Bayselonarrend/OpenIntegrations.git
synced 2024-12-16 11:38:11 +02:00
56 lines
1.3 KiB
YAML
56 lines
1.3 KiB
YAML
# This is a basic workflow to help you get started with Actions
|
|
|
|
name: CI
|
|
|
|
# Controls when the workflow will run
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
|
|
Decrypt:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Расшифровать тестовые данные
|
|
run: ./decrypt_secret.sh
|
|
env:
|
|
ENC_JSON: ${{ secrets.ENC_JSON }}
|
|
|
|
Convert:
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
- uses: otymko/setup-onescript@v1.4
|
|
with:
|
|
version: 1.3.0 # Требуемая версия OneScript
|
|
|
|
- name: Выполнить скрипт преобразования OPI -> OInt
|
|
run: oscript ./.github/workflows/convert.os
|
|
|
|
- name: Установить asserts
|
|
run: opm install asserts
|
|
|
|
- name: Выполнить тесты
|
|
run: 1testrunner -run ./OInt/tools/Modules/OPI_ПолучениеДанныхТестов.os
|
|
|
|
- name: Зашифровать данные обратно
|
|
run: |
|
|
rm -f ./data.json.gpg
|
|
gpg --symmetric --cipher-algo AES256 --passphrase="$ENC_JSON" data.json
|
|
env:
|
|
ENC_JSON: ${{ secrets.ENC_JSON }}
|
|
|
|
- name: Check
|
|
run: tree
|
|
|
|
|
|
|