Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test install, run, uninstall #394

Merged
merged 13 commits into from
Jul 21, 2023
Prev Previous commit
Next Next commit
Update test_install.yml
  • Loading branch information
cclauss authored Jul 19, 2023
commit 44dce8d2d2b25c8757ab71c63eb1539ddd933a4c
46 changes: 12 additions & 34 deletions .github/workflows/test_install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,19 @@ on:
push:
branches: [master]
jobs:
install:
test_install:
runs-on: ubuntu-latest
env:
TERM: "linux"
strategy:
fail-fast: false
matrix:
commands:
# Enter hackingtool starting from the main menu with \n as the delimiter.
- '17\n0\n1\n\n99\n99' # Install, run, update, update system, press ENTER to continue, back to main menu, quit
- '17\n0\n2\n\n99\n99' # Install, run, update, update hackingtool, press ENTER to continue, back to main menu, quit
- '17\n1\n1\n\n99' # Install, run, uninstall, press ENTER to continue, quit
- "99" # Install, run, quit
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand All @@ -19,40 +28,9 @@ jobs:
- run: pwd && ls -hal
- run: sudo ./install.sh 1
- run: pwd && ls -hal
# Typing "1" will allow us to manually enter the filepath to hackingtool
# Provide the filepath ${HOME}/work/hackingtool/hackingtool
# Typing "99" will quit hackingtool
- run: echo -e "1\n${HOME}/work/hackingtool/hackingtool\n99\n" | hackingtool
- run: pwd && ls -hal

test_install:
runs-on: ubuntu-latest
needs: install
env:
TERM: "linux"
strategy:
fail-fast: false
matrix:
commands:
# Enter hackingtool starting from the main menu with \n as the delimiter.
- '17\n0\n1\n\n99' # Install, run, update, update system, press ENTER to continue
- '17\n0\n2\n\n99' # Install, run, update, update hackingtool, press ENTER to continue
- '17\n1\n1\n\n99' # Install, run, uninstall, press ENTER to continue
- "99" # Install, run, quit
steps:
#- uses: actions/checkout@v3
#- uses: actions/setup-python@v4
# with:
# python-version: 3.x
# cache: 'pip'
#- run: pip install --upgrade pip
#- run: pwd && ls -hal
#- run: sudo ./install.sh 1
- run: hackingtool | true
- run: pwd && ls -hal
# Typing "1" will allow us to manually enter the filepath to hackingtool
# Typing "1" will allow us to manually enter the filepath to hackingtool.
# Provide the filepath ${HOME}/work/hackingtool/hackingtool
# Type the matrix.commands
# Type the matrix.commands.
- run: echo -e "1\n${HOME}/work/hackingtool/hackingtool\n${{ matrix.commands }}\n" | hackingtool
- run: pwd && ls -hal