2024-03-15 16:03:38 +02:00
|
|
|
# This is a basic workflow to help you get started with Actions
|
|
|
|
|
|
|
|
name: Основная обработка OInt (OneScript)
|
|
|
|
|
|
|
|
# Controls when the workflow will run
|
|
|
|
on:
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
|
|
|
Convert:
|
|
|
|
runs-on: ubuntu-latest
|
2024-03-16 10:50:29 +02:00
|
|
|
permissions:
|
|
|
|
contents: write
|
2024-03-15 18:07:00 +02:00
|
|
|
|
2024-03-15 16:03:38 +02:00
|
|
|
steps:
|
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: otymko/setup-onescript@v1.4
|
|
|
|
with:
|
|
|
|
version: 1.9.0
|
|
|
|
|
|
|
|
- name: Выполнить скрипт преобразования OPI -> OInt
|
|
|
|
run: oscript ./.github/workflows/convert.os
|
|
|
|
|
2024-03-16 10:48:09 +02:00
|
|
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
|
|
|
|
2024-03-15 16:03:38 +02:00
|
|
|
Decode:
|
|
|
|
runs-on: ubuntu-latest
|
2024-03-15 16:06:55 +02:00
|
|
|
needs: Convert
|
2024-03-15 16:03:38 +02:00
|
|
|
steps:
|
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Расшифровать тестовые данные
|
|
|
|
run: gpg --quiet --batch --yes --decrypt --passphrase="$ENC_JSON" --output ./data.json ./data.json.gpg
|
|
|
|
env:
|
|
|
|
ENC_JSON: ${{ secrets.ENC_JSON }}
|
|
|
|
- name: Записать артефакт
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: test_data
|
|
|
|
path: data.json
|
|
|
|
|
2024-03-15 16:29:50 +02:00
|
|
|
Testing-Telegram:
|
2024-03-15 16:03:38 +02:00
|
|
|
runs-on: ubuntu-latest
|
2024-03-15 16:06:55 +02:00
|
|
|
needs: Decode
|
2024-03-15 16:03:38 +02:00
|
|
|
steps:
|
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: otymko/setup-onescript@v1.4
|
|
|
|
with:
|
|
|
|
version: 1.9.0
|
|
|
|
|
|
|
|
- name: Скачать артефакт с тестовой информацией
|
|
|
|
uses: actions/download-artifact@v4
|
|
|
|
with:
|
|
|
|
name: test_data
|
|
|
|
|
|
|
|
- name: Установить asserts и 1testrunner
|
|
|
|
run: |
|
|
|
|
opm install asserts
|
|
|
|
opm install 1testrunner
|
|
|
|
|
|
|
|
- name: Выполнить тесты
|
2024-03-15 16:29:50 +02:00
|
|
|
run: |
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Телеграм_ПолучитьИнформациюБота"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Телеграм_ПолучитьОбновления"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Телеграм_УстановитьWebhook"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Телеграм_УдалитьWebhook"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Телеграм_ОтправитьТекстовоеСообщение"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Телеграм_ОтправитьКартинку"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Телеграм_ОтправитьВидео"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Телеграм_ОтправитьАудио"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Телеграм_ОтправитьДокумент"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Телеграм_ОтправитьГифку"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Телеграм_ОтправитьМедиагруппу"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Телеграм_ОтправитьМестоположение"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Телеграм_ОтправитьКонтакт"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Телеграм_ОтправитьОпрос"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Телеграм_ПереслатьСообщение"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Телеграм_БанРазбан"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Телеграм_СоздатьСсылкуПриглашение"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Телеграм_ЗакрепитьОткрепитьСообщение"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Телеграм_ПолучитьСписокАватаровФорума"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Телеграм_СоздатьУдалитьТемуФорума"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Телеграм_ОткрытьЗакрытьГлавнуюТему"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Телеграм_ИзменитьИмяГлавнойТемы"
|
2024-03-15 16:03:38 +02:00
|
|
|
|
2024-03-15 19:08:52 +02:00
|
|
|
Testing-VK:
|
2024-03-16 12:32:20 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: Decode
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: otymko/setup-onescript@v1.4
|
|
|
|
with:
|
|
|
|
version: 1.9.0
|
|
|
|
|
|
|
|
- name: Скачать артефакт с тестовой информацией
|
|
|
|
uses: actions/download-artifact@v4
|
|
|
|
with:
|
|
|
|
name: test_data
|
|
|
|
|
|
|
|
- name: Установить asserts и 1testrunner
|
|
|
|
run: |
|
|
|
|
opm install asserts
|
|
|
|
opm install 1testrunner
|
|
|
|
|
|
|
|
- name: Выполнить тесты
|
|
|
|
run: |
|
2024-03-15 19:08:52 +02:00
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ВК_СоздатьСсылкуТокена"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ВК_СоздатьУдалитьПост"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ВК_СоздатьОпрос"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ВК_СоздатьИсторию"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ВК_МетодыОбсуждений"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ВК_ЛайкРепостКоммент"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ВК_ПолучитьСтатистику"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ВК_ПолучитьСтатистикуПостов"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ВК_СоздатьРекламнуюКампанию"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ВК_ОтправитьСообщение"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ВК_ПолучитьКатегорииТоваров"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ВК_СоздатьТоварПодборку"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ВК_СоздатьТоварСоСвойствами"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ВК_ПолучитьСписокТоваров"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ВК_ПолучитьСписокПодборок"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ВК_ПолучитьСписокСвойств"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ВК_ПолучитьСписокЗаказов"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ВК_СохранитьУдалитьКартинку"
|
|
|
|
|
|
|
|
Testing-YandexDisk:
|
2024-03-16 12:32:20 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: Decode
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: otymko/setup-onescript@v1.4
|
|
|
|
with:
|
|
|
|
version: 1.9.0
|
|
|
|
|
|
|
|
- name: Скачать артефакт с тестовой информацией
|
|
|
|
uses: actions/download-artifact@v4
|
|
|
|
with:
|
|
|
|
name: test_data
|
|
|
|
|
|
|
|
- name: Установить asserts и 1testrunner
|
|
|
|
run: |
|
|
|
|
opm install asserts
|
|
|
|
opm install 1testrunner
|
|
|
|
|
|
|
|
- name: Выполнить тесты
|
|
|
|
run: |
|
2024-03-15 19:08:52 +02:00
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ЯДиск_ПолучитьИнформациюОДиске"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ЯДиск_СоздатьПапку"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ЯДиск_ЗагрузитьПоАдресуПолучитьОбъект"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ЯДиск_ЗагрузитьУдалитьФайл"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ЯДиск_СоздатьКопиюОбъекта"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ЯДиск_ПолучитьСсылкуНаСкачивание"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ЯДиск_ПолучитьСписокФайлов"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ЯДиск_ПереместитьОбъект"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ЯДиск_ДействияПубличныхОбъектов"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ЯДиск_ПолучитьСписокОпубликованных"
|
|
|
|
|
|
|
|
Testing-Viber:
|
2024-03-16 12:32:20 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: Decode
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: otymko/setup-onescript@v1.4
|
|
|
|
with:
|
|
|
|
version: 1.9.0
|
|
|
|
|
|
|
|
- name: Скачать артефакт с тестовой информацией
|
|
|
|
uses: actions/download-artifact@v4
|
|
|
|
with:
|
|
|
|
name: test_data
|
|
|
|
|
|
|
|
- name: Установить asserts и 1testrunner
|
|
|
|
run: |
|
|
|
|
opm install asserts
|
|
|
|
opm install 1testrunner
|
|
|
|
|
|
|
|
- name: Выполнить тесты
|
|
|
|
run: |
|
2024-03-15 19:08:52 +02:00
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Вайбер_ПолучитьИнформациюОКанале"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Вайбер_ПолучитьДанныеПользователя"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Вайбер_ПолучитьОнлайнПользователей"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Вайбер_ОтправитьТекстовоеСообщение"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Вайбер_ОтправитьКартинку"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Вайбер_ОтправитьФайл"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Вайбер_ОтправитьКонтакт"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Вайбер_ОтправитьЛокацию"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Вайбер_ОтправитьСсылку"
|
|
|
|
|
|
|
|
Testing-GoogleWorkspace:
|
2024-03-16 12:32:20 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: Decode
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: otymko/setup-onescript@v1.4
|
|
|
|
with:
|
|
|
|
version: 1.9.0
|
|
|
|
|
|
|
|
- name: Скачать артефакт с тестовой информацией
|
|
|
|
uses: actions/download-artifact@v4
|
|
|
|
with:
|
|
|
|
name: test_data
|
|
|
|
|
|
|
|
- name: Установить asserts и 1testrunner
|
|
|
|
run: |
|
|
|
|
opm install asserts
|
|
|
|
opm install 1testrunner
|
|
|
|
|
|
|
|
- name: Выполнить тесты
|
|
|
|
run: |
|
2024-03-15 19:08:52 +02:00
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ГВ_ПолучитьСсылкуАвторизации"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ГВ_ПолучитьТокен"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ГВ_ОбновитьТокен"
|
|
|
|
|
2024-03-16 12:32:20 +02:00
|
|
|
- name: Записать артефакт
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: test_data_google
|
|
|
|
path: data.json
|
2024-03-16 12:02:39 +02:00
|
|
|
|
2024-03-15 19:08:52 +02:00
|
|
|
Testing-GoogleCalendar:
|
2024-03-16 12:32:20 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: Testing-GoogleWorkspace
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: otymko/setup-onescript@v1.4
|
|
|
|
with:
|
|
|
|
version: 1.9.0
|
|
|
|
|
|
|
|
- name: Скачать артефакт с тестовой информацией
|
|
|
|
uses: actions/download-artifact@v4
|
|
|
|
with:
|
|
|
|
name: test_data_google
|
|
|
|
|
|
|
|
- name: Установить asserts и 1testrunner
|
|
|
|
run: |
|
|
|
|
opm install asserts
|
|
|
|
opm install 1testrunner
|
|
|
|
|
|
|
|
- name: Выполнить тесты
|
|
|
|
run: |
|
2024-03-15 19:08:52 +02:00
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ГК_ПолучитьСписокКалендарей"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ГК_СоздатьУдалитьКалендарь"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ГК_СоздатьУдалитьСобытие"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ГК_ПолучитьСписокСобытий"
|
|
|
|
|
|
|
|
Testing-GoogleDrive:
|
2024-03-16 12:32:20 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: Testing-GoogleWorkspace
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: otymko/setup-onescript@v1.4
|
|
|
|
with:
|
|
|
|
version: 1.9.0
|
|
|
|
|
|
|
|
- name: Скачать артефакт с тестовой информацией
|
|
|
|
uses: actions/download-artifact@v4
|
|
|
|
with:
|
|
|
|
name: test_data_google
|
|
|
|
|
|
|
|
- name: Установить asserts и 1testrunner
|
|
|
|
run: |
|
|
|
|
opm install asserts
|
|
|
|
opm install 1testrunner
|
|
|
|
|
|
|
|
- name: Выполнить тесты
|
|
|
|
run: |
|
2024-03-15 19:08:52 +02:00
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ГД_ПолучитьСписокКаталогов"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "ГД_ЗагрузитьУдалитьФайл"
|
|
|
|
|
|
|
|
Testing-Twitter:
|
2024-03-16 12:32:20 +02:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: Decode
|
|
|
|
steps:
|
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: otymko/setup-onescript@v1.4
|
|
|
|
with:
|
|
|
|
version: 1.9.0
|
|
|
|
|
|
|
|
- name: Скачать артефакт с тестовой информацией
|
|
|
|
uses: actions/download-artifact@v4
|
|
|
|
with:
|
|
|
|
name: test_data
|
|
|
|
|
|
|
|
- name: Установить asserts и 1testrunner
|
|
|
|
run: |
|
|
|
|
opm install asserts
|
|
|
|
opm install 1testrunner
|
|
|
|
|
|
|
|
- name: Выполнить тесты
|
|
|
|
run: |
|
2024-03-15 19:08:52 +02:00
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Твиттер_ПолучитьСсылкуАвторизации"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Твиттер_ОбновитьТокен"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Твиттер_СоздатьТекстовыйТвит"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Твиттер_СоздатьТвитСКартинкой"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Твиттер_СоздатьТвитСВидео"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Твиттер_СоздатьТвитСГиф"
|
|
|
|
oscript /home/runner/.local/share/ovm/current/lib/1testrunner/src/main.os -run ./OInt/tests/Modules/internal/OPI_Тесты.os "Твиттер_СоздатьТвитСОпросом"
|
|
|
|
|
2024-03-16 12:32:20 +02:00
|
|
|
- name: Записать артефакт
|
|
|
|
uses: actions/upload-artifact@v4
|
|
|
|
with:
|
|
|
|
name: test_data_new
|
|
|
|
path: data.json
|
2024-03-16 12:02:39 +02:00
|
|
|
|
2024-03-15 16:03:38 +02:00
|
|
|
Encode:
|
|
|
|
runs-on: ubuntu-latest
|
2024-03-15 19:11:56 +02:00
|
|
|
needs: Testing-Twitter
|
2024-03-15 18:07:00 +02:00
|
|
|
permissions:
|
|
|
|
contents: write
|
|
|
|
|
2024-03-15 16:03:38 +02:00
|
|
|
steps:
|
|
|
|
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Скачать артефакт с тестовой информацией
|
|
|
|
uses: actions/download-artifact@v4
|
|
|
|
with:
|
2024-03-15 16:29:50 +02:00
|
|
|
name: test_data_new
|
2024-03-15 16:03:38 +02:00
|
|
|
|
|
|
|
- name: Зашифровать данные обратно
|
|
|
|
continue-on-error: false
|
|
|
|
|
|
|
|
run: |
|
|
|
|
rm -f ./data.json.gpg
|
|
|
|
gpg --batch --symmetric --cipher-algo AES256 --passphrase="$ENC_JSON" data.json
|
|
|
|
rm -f ./data.json
|
|
|
|
env:
|
|
|
|
ENC_JSON: ${{ secrets.ENC_JSON }}
|
|
|
|
|
|
|
|
- uses: stefanzweifel/git-auto-commit-action@v5
|
|
|
|
|
|
|
|
|
|
|
|
|