diff --git a/.github/workflows/compile-and-test.yml b/.github/workflows/compile-and-test.yml index 3acfed3..8eb424e 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 + # Создаём последовательный ввод для программы + (echo "0"; echo "$file") | ./a.out if [ $? -ne 0 ]; then echo "::error::Test failed for $file" exit 1