From 6d52db486117a2426b42b1041f710c3bf6b7598d Mon Sep 17 00:00:00 2001 From: Christian Clauss Date: Wed, 19 Jul 2023 12:33:19 +0200 Subject: [PATCH] Complete the test_install GitHub Action --- .github/workflows/test_install.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_install.yml b/.github/workflows/test_install.yml index dc75a267..3a5230a8 100644 --- a/.github/workflows/test_install.yml +++ b/.github/workflows/test_install.yml @@ -17,10 +17,11 @@ jobs: cache: 'pip' - run: pip install --upgrade pip - run: pwd && ls -hal - # How can we pipe in responses to `read` prompts? - #- run: echo -e "\n1\n1\n1\n" | sudo ./install.sh - run: sudo ./install.sh 1 - run: pwd && ls -hal - - run: echo -e "1\n/home/runner/work/hackingtool/hackingtool\n" | hackingtool || true + # Typing "1" will allow us to manually enter a path. + # Provide a path to a writable directory: /home/runner/work/hackingtool/hackingtool + # Typing "99" will quit hackingtool. + - run: echo -e "1\n/home/runner/work/hackingtool/hackingtool\n99\n" | hackingtool - run: pwd && ls -hal