Skip to content

Commit

Permalink
Merge pull request #307 from oscript-library/develop
Browse files Browse the repository at this point in the history
3.5.4
  • Loading branch information
nixel2007 authored Jan 20, 2024
2 parents 4051449 + 5c20d08 commit 3e30a19
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 97 deletions.
86 changes: 11 additions & 75 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
@@ -1,78 +1,14 @@
# MIT License
# Copyright (C) 2020 Tymko Oleg <[email protected]> and contributors
# All rights reserved.

name: Контроль качества
# Любой пуш и pr в проекте но с фильтром по основному проекту
on: [push, pull_request]
jobs:
build:
if: github.repository == 'oscript-library/gitsync'
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
oscript_version: ['1.7.0']

steps:
# Загрузка проекта
- name: Актуализация
uses: actions/checkout@v2

# https://stackoverflow.com/questions/58033366/how-to-get-current-branch-within-github-actions
- name: Извлечение имени текущей ветки
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch

# Установка OneScript конкретной версии
- name: Установка OneScript
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: true
uses: otymko/[email protected]
with:
version: ${{ matrix.oscript_version }}

# Установка зависимостей пакета
- name: Установка зависимостей
run: |
opm install opm
opm install --dev
on:
push:
pull_request:
workflow_dispatch:

# Запуск тестов и сбор покрытия кода
- name: Покрытие кода
run: oscript ./tasks/coverage.os true

- name: Compute branch name
uses: nixel2007/branch-name@v3

- name: Извлечение версии пакета
shell: bash
run: echo "##[set-output name=version;]`cat packagedef | grep ".Версия(" | sed 's|[^"]*"||' | sed -r 's/".+//'`"
id: extract_version

- name: Установка Sonar-scanner
uses: warchant/setup-sonar-scanner@v1

# Анализ проекта в SonarQube (ветка)
- name: Анализ в SonarQube (branch)
if: github.event_name == 'push'
run: sonar-scanner
-Dsonar.login=${{ secrets.SONARQUBE_TOKEN }}
-Dsonar.host.url=${{ secrets.SONARQUBE_HOST }}
-Dsonar.branch.name=${{ steps.extract_branch.outputs.branch }}
-Dsonar.projectVersion=${{ steps.extract_version.outputs.version }}

# Анализ проекта в SonarQube (PR)
# https://docs.sonarqube.org/latest/analysis/pull-request/
- name: Анализ в SonarQube (pull-request)
if: github.event_name == 'pull_request'
run: sonar-scanner
-Dsonar.login=${{ secrets.SONARQUBE_TOKEN }}
-Dsonar.host.url=${{ secrets.SONARQUBE_HOST }}
-Dsonar.branch.name=${{ steps.extract_branch.outputs.branch }}
-Dsonar.pullrequest.key=${{ github.event.pull_request.number }}
-Dsonar.pullrequest.branch=${{ github.event.pull_request.head.ref }}
-Dsonar.pullrequest.base=${{ github.event.pull_request.base.ref }}
-Dsonar.scm.revision=${{ github.event.pull_request.head.sha }}
jobs:
sonar:
uses: autumn-library/workflows/.github/workflows/sonar.yml@main
with:
github_repository: oscript-library/gitsync
secrets:
SONAR_TOKEN: ${{ secrets.SONARQUBE_TOKEN }}
6 changes: 3 additions & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
fail-fast: false
matrix:
os: [ubuntu-latest]
oscript_version: ['1.7.0']
oscript_version: ['1.8.4']

steps:
# Загрузка проекта
Expand All @@ -32,8 +32,8 @@ jobs:
- name: Установка зависимостей
run: |
opm install opm
opm install --dev
opm install -l --dev
# Задача тестирования, в результате ожидается успешное выполнение
- name: Тестирование
run: oscript ./tasks/test.os true
run: oscript ./tasks/test.os true
4 changes: 2 additions & 2 deletions build_packagedef
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,8 @@
КонецПроцедуры

Описание.Имя("gitsync")
.Версия("3.5.3")
.ВерсияСреды("1.7.0")
.Версия("3.5.4")
.ВерсияСреды("1.8.4")
.ВключитьФайл("src")
.ВключитьФайл("embedded_plugins")
.ВключитьФайл("oscript_modules")
Expand Down
4 changes: 2 additions & 2 deletions packagedef
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@

Описание.Имя("gitsync")
.Версия("3.5.3")
.ВерсияСреды("1.7.0")
.Версия("3.5.4")
.ВерсияСреды("1.8.4")
.ЗависитОт("logos", "1.2.1")
.ЗависитОт("tempfiles", "1.0.0")
.ЗависитОт("v8runner", "1.8.2")
Expand Down
7 changes: 3 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
Синхронизация хранилища 1С с репозиторием git
=============================================

Обсудить [![oscript_library](https://img.shields.io/badge/chat-telegram-blue)](https://t.me/oscript_library)

[![GitHub release](https://img.shields.io/github/release/khorevaa/gitsync.svg)](https://github.com/oscript-library/gitsync/releases)
[![Last release](https://img.shields.io/github/v/release/oscript-library/gitsync?include_prereleases&label=last%20release&style=badge)](https://github.com/oscript-library/gitsync/releases/latest)
[![GitHub issues](https://img.shields.io/github/issues-raw/oscript-library/gitsync?style=badge)](https://github.com/oscript-library/gitsync/issues)
[![oscript_library](https://img.shields.io/badge/chat-telegram-blue)](https://t.me/oscript_library)

Оглавление
==========
Expand Down
18 changes: 9 additions & 9 deletions src/cmd/Классы/КомандаUsage.os
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,12 @@
|
| 1. Активизация нужных плагинов:
|
| > %1 plugins enable ИМЯПЛАГИНА
| или активизация всех плагинов
| активизация указанных плагинов
| > %1 plugins enable ИМЯПЛАГИНА1 ИМЯПЛАГИНА2
| активизация всех плагинов
| > %1 plugins enable -a
| интерактивный выбор плагинов
| > %1 plugins enable
|
| Подробные описание использования команды <plugins>:
|
Expand Down Expand Up @@ -119,24 +122,21 @@

Процедура ВывестиОписание(Знач ТекстОписания)

КонсольВывода = Новый Консоль();
ИтоговаяСправка = ТекстОписания;

МассивСтрокВывода = СтрРазделить(ИтоговаяСправка, Символы.ПС);

Для каждого СтрокаВывода Из МассивСтрокВывода Цикл
Если СтрНачинаетсяС(СокрЛП(Строкавывода), "*") Тогда
СтрокаВывода = СтрЗаменить(СтрокаВывода, "*", " ");
КонсольВывода.ВывестиСтроку(Строкавывода);
Консоль.ВывестиСтроку(Строкавывода);

ИначеЕсли СтрНачинаетсяС(СокрЛП(Строкавывода), ">") Тогда
КонсольВывода.ВывестиСтроку(Строкавывода);
Консоль.ВывестиСтроку(Строкавывода);
Иначе
КонсольВывода.ВывестиСтроку(Строкавывода);
Консоль.ВывестиСтроку(Строкавывода);
КонецЕсли;
КонецЦикла;

КонсольВывода = Неопределено;

КонецПроцедуры

Expand Down Expand Up @@ -179,7 +179,7 @@

КонецФункции // ПрочитатьФайл()

Функция ЦветаКонсоли() Экспорт;
Функция ЦветаКонсоли() Экспорт

Цвета = Новый Структура;
// Цвета.Вставить("ЦветСписка", ЦветКонсоли.Желтый);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@

Функция Версия() Экспорт

Возврат "3.4.0";
Возврат "3.5.4";

КонецФункции

Expand Down
2 changes: 1 addition & 1 deletion src/core/Модули/ПараметрыСистемы.os
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
//
Функция ВерсияПродукта() Экспорт

Возврат "3.5.3";
Возврат "3.5.4";

КонецФункции // ВерсияПродукта()

Expand Down
1 change: 1 addition & 0 deletions tasks/oscript.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lib.system=../oscript_modules

0 comments on commit 3e30a19

Please sign in to comment.