You've already forked hackingtool
mirror of
https://github.com/Z4nzu/hackingtool.git
synced 2025-06-20 06:15:54 +02:00
Update test_install.yml
This commit is contained in:
42
.github/workflows/test_install.yml
vendored
42
.github/workflows/test_install.yml
vendored
@ -5,19 +5,10 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches: [master]
|
branches: [master]
|
||||||
jobs:
|
jobs:
|
||||||
test_install:
|
install:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
TERM: "linux"
|
TERM: "linux"
|
||||||
strategy:
|
|
||||||
fail-fast: false
|
|
||||||
matrix:
|
|
||||||
commands:
|
|
||||||
# Enter hackingtool starting from the main menu with \n as the delimiter.
|
|
||||||
- "17\n0\n1\n99" # Install, run, update, update system, press ENTER to continue
|
|
||||||
- "17\n0\n2\n99" # Install, run, update, update hackingtool, press ENTER to continue
|
|
||||||
- '17\n1\n99' # Install, run, uninstall, press ENTER to continue
|
|
||||||
- "99" # Install, run, quit
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: actions/setup-python@v4
|
- uses: actions/setup-python@v4
|
||||||
@ -30,6 +21,37 @@ jobs:
|
|||||||
- run: pwd && ls -hal
|
- 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
|
# 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
|
||||||
|
# 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: echo -e "1\n${HOME}/work/hackingtool/hackingtool\n${{ matrix.commands }}\n" | hackingtool
|
||||||
- run: pwd && ls -hal
|
- run: pwd && ls -hal
|
||||||
|
Reference in New Issue
Block a user