From c30d4c082ad2065f7f4d496b432642d4464ccf5f Mon Sep 17 00:00:00 2001 From: AZEN-SGG Date: Sat, 21 Dec 2024 20:51:05 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BD=D0=BE=D0=B2=D0=B0=20=D0=B2=D0=B2?= =?UTF-8?q?=D0=BE=D0=B4=20=D0=BF=D0=BE=D0=BC=D0=B5=D0=BD=D1=8F=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/compile-and-test.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/compile-and-test.yml b/.github/workflows/compile-and-test.yml index 9db1fae..3acfed3 100644 --- a/.github/workflows/compile-and-test.yml +++ b/.github/workflows/compile-and-test.yml @@ -48,8 +48,12 @@ jobs: for file in t/*; do echo "Testing with file: $file" - # Создаём файл ввода - (echo "0"; echo "$file") | ./a.out + # Создаём временный файл для ввода + echo "0" > input.txt + echo "$file" >> input.txt + + # Передаём ввод через файл + ./a.out < input.txt if [ $? -ne 0 ]; then echo "::error::Test failed for $file" exit 1