-
Notifications
You must be signed in to change notification settings - Fork 93
Реализация gitsync plugins help #332
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,7 +3,6 @@ name: Контроль качества | |
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
sonar: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,10 @@ | |
# All rights reserved. | ||
|
||
name: Тестирование | ||
# Любой пуш и pr в проекте | ||
on: [push, pull_request] | ||
|
||
on: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Кажется тоже можно на типовой воркфлоу из autumn-library перевести, да? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. для прохождения тестов нужна установленная платформа. или это можно как-то совместить с воркфлоу от autumn-library? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Только если своего агента подсунуть. Доп экшены пока нельзя выполнять. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Либо нужно composite actions делать, но это прям сложнее. |
||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
|
@@ -13,18 +15,16 @@ jobs: | |
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest] | ||
oscript_version: ['1.9.0'] | ||
oscript_version: ['1.9.2'] | ||
|
||
steps: | ||
# Загрузка проекта | ||
- name: Актуализация | ||
uses: actions/checkout@v2 | ||
uses: actions/checkout@v4.2.2 | ||
|
||
# Установка OneScript конкретной версии | ||
- name: Установка OneScript | ||
uses: otymko/[email protected] | ||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: true | ||
uses: otymko/[email protected] | ||
with: | ||
version: ${{ matrix.oscript_version }} | ||
|
||
|
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
@@ -1,4 +1,6 @@ | ||||||
|
||||||
#Использовать "../../core" | ||||||
|
||||||
Перем Лог; | ||||||
|
||||||
Процедура ОписаниеКоманды(Команда) Экспорт | ||||||
|
@@ -8,14 +10,38 @@ | |||||
|
||||||
Команда.Спек = "(-a | --all) | PLUGIN..."; | ||||||
|
||||||
// Команда.УстановитьДействиеПередВыполнением(ПараметрыПриложения); | ||||||
// Команда.УстановитьДействиеПослеВыполнения(ПараметрыПриложения); | ||||||
|
||||||
КонецПроцедуры | ||||||
|
||||||
Процедура ВыполнитьКоманду(Знач Команда) Экспорт | ||||||
|
||||||
ВызватьИсключение "Команда Help не реализована"; | ||||||
МенеджерПлагинов = ПараметрыПриложения.МенеджерПлагинов(); | ||||||
ВсеПлагины = МенеджерПлагинов.ПолучитьИндексПлагинов(); | ||||||
|
||||||
ВывестиВсеПлагины = Команда.ЗначениеОпции("all"); | ||||||
ИмяПлагина = Команда.ЗначениеАргумента("PLUGIN"); | ||||||
|
||||||
Для каждого КлючЗначение Из ВсеПлагины Цикл | ||||||
|
||||||
Плагин = КлючЗначение.Значение; | ||||||
|
||||||
Если НЕ ВывестиВсеПлагины Тогда | ||||||
Если КлючЗначение.Ключ = ИмяПлагина Тогда | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Review the plugin name comparison here – if case insensitivity is required by design, consider using a case-insensitive comparison or adding a comment to indicate that this is intentional.
Suggested change
Copilot uses AI. Check for mistakes. Positive FeedbackNegative Feedback |
||||||
ВывестиСправку(Плагин); | ||||||
Прервать; | ||||||
КонецЕсли; | ||||||
Иначе | ||||||
ВывестиСправку(Плагин); | ||||||
КонецЕсли; | ||||||
|
||||||
КонецЦикла; | ||||||
|
||||||
КонецПроцедуры | ||||||
|
||||||
Процедура ВывестиСправку(Плагин) | ||||||
|
||||||
Сообщить(Плагин.Имя()); | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Специально через сообщить, а не через лог? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. да, чтобы There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Раскладку на лог выставить может быть? Не критично, просто хотелось бы аккуратности в ci, когда вывод логов в файл настроен There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. не совсем понял про раскладку на лог... полагаю, мне надо заглянуть в доку на logos еще разок, да? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ты можешь задать спец форматтер для сообщений из определённого лога. И не добавлять туда префикс с уровнем лога, например. Возможно такая раскладка даже уже есть в сорцах логоса, надо посмотреть) |
||||||
Сообщить(Плагин.Справка()); | ||||||
Сообщить(""); | ||||||
|
||||||
КонецПроцедуры | ||||||
|
||||||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Вроде должно работать. Если не работает, надо тогда в материнском воркфлоу поправить (но мне кажется, что я правил уже)