mirror of
https://github.com/Z4nzu/hackingtool
synced 2024-11-15 04:05:29 +00:00
27 lines
733 B
YAML
27 lines
733 B
YAML
name: test_install
|
|
on:
|
|
pull_request:
|
|
branches: [master]
|
|
push:
|
|
branches: [master]
|
|
jobs:
|
|
test_install:
|
|
runs-on: ubuntu-latest
|
|
env:
|
|
TERM: "linux"
|
|
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
|
|
# 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
|
|
# `2` should use the default path /home/hackingtool/
|
|
- run: echo "2\n" | hackingtool # Does not take the echoed input
|
|
- run: echo "2\n" | hackingtool.py
|