From 8429487f5789e5f24aaf6bdd0600c2ea459b7b72 Mon Sep 17 00:00:00 2001 From: AZEN-SGG Date: Sat, 21 Dec 2024 21:04:40 +0300 Subject: [PATCH] =?UTF-8?q?=D0=94=D1=80=D1=83=D0=B3=D0=BE=D0=B9=20=D1=81?= =?UTF-8?q?=D0=BF=D0=BE=D1=81=D0=BE=D0=B1?= 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, 2 insertions(+), 6 deletions(-) diff --git a/.github/workflows/compile-and-test.yml b/.github/workflows/compile-and-test.yml index 73cdc82..e6e7af7 100644 --- a/.github/workflows/compile-and-test.yml +++ b/.github/workflows/compile-and-test.yml @@ -48,12 +48,8 @@ jobs: for file in t/*; do echo "Testing with file: $file" - # Создаём временный файл ввода - echo "0" > input.txt - echo "$file" >> input.txt - - # Запускаем программу с вводом через файл - ./a.out < input.txt + # Передаём последовательный ввод + printf "0\n$file\n" | ./a.out if [ $? -ne 0 ]; then echo "::error::Test failed for $file" exit 1