Skip to content

Commit

Permalink
ci: исправление тестирования внешних обработок
Browse files Browse the repository at this point in the history
  • Loading branch information
alkoleft committed Jan 18, 2025
1 parent 63ae27e commit a0a4c35
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 12 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/step-run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,16 @@ jobs:
sudo ln -s /usr/lib/x86_64-linux-gnu/libenchant-2.so.2 /usr/lib/libenchant.so.1
sudo localedef -i ${{ inputs.locale }} -c -f UTF-8 -A /usr/share/locale/locale.alias ${{ inputs.locale }}.UTF-8
mkdir -p ~/.1cv8/1C/1cv8/conf/
cat >~/.1cv8/1C/1cv8/conf/conf.cfg <<EOL
DisableUnsafeActionProtection=.*
EOL
- name: Подготовка окружения (Windows)
if: runner.os == 'Windows'
run: |
mkdir -p C:\Program Files\1cv8\conf
'DisableUnsafeActionProtection=.*`r`n' | Out-File -FilePath C:\Program Files\1cv8\conf\conf.cfg -Encoding utf8 -Append
- name: Определение "короткой" локали
id: short_locale
shell: pwsh
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//©///////////////////////////////////////////////////////////////////////////©//
//
// Copyright 2021-2024 BIA-Technologies Limited Liability Company
// Copyright 2021-2025 BIA-Technologies Limited Liability Company
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//©///////////////////////////////////////////////////////////////////////////©//
//
// Copyright 2021-2024 BIA-Technologies Limited Liability Company
// Copyright 2021-2025 BIA-Technologies Limited Liability Company
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
8 changes: 3 additions & 5 deletions tools/local-test/scripts/test-by-ibcmd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -50,17 +50,15 @@ mkdir -p $BINARY_PATH
mkdir -p $TMP_PATH
mkdir -p $RESULT_PATH

rm -rf $TMP_PATH/*
rm -rf $RESULT_PATH/*
rm -rf $LOGS_PATH/*
rm -rf "${TMP_PATH:?}/"*
rm -rf "${RESULT_PATH:?}/"*
rm -rf "${LOGS_PATH:?}/"*

cat >~/.1cv8/1C/1cv8/conf/conf.cfg <<EOL
DisableUnsafeActionProtection=.*
EOL

declare -A SOURCES_HASH
declare -A SOURCE_PATHS=( ["yaxunit"]="exts/yaxunit" ["smoke"]="exts/smoke" ["tests"]="tests" ["configuration"]="fixtures/demo-configuration")
declare projects=()

echo "=========== Анализ исходников ==========="
for key in "${!SOURCE_PATHS[@]}"; do
Expand Down
8 changes: 3 additions & 5 deletions tools/local-test/scripts/test-it.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,15 @@ mkdir -p $BINARY_PATH
mkdir -p $TMP_PATH
mkdir -p $RESULT_PATH

rm -rf $TMP_PATH/*
rm -rf $RESULT_PATH/*
rm -rf $LOGS_PATH/*
rm -rf "${TMP_PATH:?}/"*
rm -rf "${RESULT_PATH:?}/"*
rm -rf "${LOGS_PATH:?}/"*

cat >~/.1cv8/1C/1cv8/conf/conf.cfg <<EOL
DisableUnsafeActionProtection=.*
EOL

declare -A SOURCES_HASH
declare -A SOURCE_PATHS=( ["yaxunit"]="exts/yaxunit" ["smoke"]="exts/smoke" ["tests"]="tests" ["configuration"]="fixtures/demo-configuration")
declare projects=()

echo "=========== Анализ исходников ==========="
for key in "${!SOURCE_PATHS[@]}"; do
Expand Down

0 comments on commit a0a4c35

Please sign in to comment.