2023-07-18 07:49:09 +00:00
|
|
|
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-18 07:49:09 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: 3.x
|
|
|
|
cache: 'pip'
|
|
|
|
- run: pip install --upgrade pip
|
2023-07-18 08:04:07 +00:00
|
|
|
- run: pwd && ls -hal
|
2023-07-18 08:13:27 +00:00
|
|
|
# How can we pipe in responses to `read` prompts?
|
2023-07-18 09:18:26 +00:00
|
|
|
#- run: echo -e "\n1\n1\n1\n" | sudo ./install.sh
|
2023-07-18 08:46:09 +00:00
|
|
|
- run: sudo ./install.sh 1
|
|
|
|
- run: pwd && ls -hal
|
2023-07-18 10:40:34 +00:00
|
|
|
- run: echo -e "1\n/home/runner/work/hackingtool/hackingtool\n" | hackingtool || true
|
2023-07-18 09:18:26 +00:00
|
|
|
- run: pwd && ls -hal
|
|
|
|
|