hackingtool/.github/workflows/test_install.yml

37 lines
1.1 KiB
YAML
Raw Normal View History

name: test_install
on:
pull_request:
branches: [master]
push:
branches: [master]
jobs:
test_install:
runs-on: ubuntu-latest
2023-07-18 08:46:09 +00:00
env:
TERM: "linux"
2023-07-19 11:15:26 +00:00
strategy:
fail-fast: false
matrix:
commands:
2023-07-19 11:40:06 +00:00
# Enter hackingtool starting from the main menu with \n as the delimiter.
2023-07-19 14:35:35 +00:00
- "17\n0\n1" # Install, run, update, update system
- "17\n0\n2" # Install, run, update, update hackingtool
- "17\n1\n" # Install, run, uninstall, press ENTER to continue
2023-07-19 11:40:06 +00:00
- "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
2023-07-18 08:46:09 +00:00
- run: sudo ./install.sh 1
- run: pwd && ls -hal
2023-07-19 11:40:06 +00:00
# Typing "1" will allow us to manually enter the filepath to hackingtool
# Provide the filepath ${HOME}/work/hackingtool/hackingtool
# Type the matrix.commands
- run: echo -e "1\n${HOME}/work/hackingtool/hackingtool\n${{ matrix.commands }}\n" | hackingtool
2023-07-18 09:18:26 +00:00
- run: pwd && ls -hal