Skip to content

Commit

Permalink
test
Browse files Browse the repository at this point in the history
  • Loading branch information
gushmazuko committed Apr 17, 2024
1 parent c171cf4 commit bcbfc2f
Showing 1 changed file with 7 additions and 47 deletions.
54 changes: 7 additions & 47 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,53 +6,13 @@ on:
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest # Using a GitHub-hosted runner

container:
image: termux/termux-docker:x86_64
test-git-config:
runs-on: ubuntu-22.04
container: ubuntu:jammy-20240111

steps:
# - name: investigate
# run: |
# pwd
# whoami
# ls -la
# id -u
# - name: Checkout Code
# uses: actions/checkout@v2

- name: Set environment variables
run: |
echo "TERM=xterm" >> $GITHUB_ENV
# - name: Check DNS readiness
# run: |
# echo "Checking DNS readiness..."
# max_attempts=$((2 * 60 / 5))
# attempt=1
# while [ $attempt -le $max_attempts ]; do
# if curl -Is https://termux.dev > /dev/null; then
# echo "DNS is ready and HTTP request to Termux was successful."
# break
# else
# if [ $attempt -eq $max_attempts ]; then
# echo "Timeout reached. DNS is still not ready."
# exit 1
# fi
# attempt=$((attempt + 1))
# sleep 5
# fi
# done

- name: Update packages
run: |
apt update -y
- name: Run the metasploit installation script and check msfconsole version
run: |
bash <(curl -fsSL https://raw.githubusercontent.com/gushmazuko/metasploit_in_termux/feature/github-actions/metasploit.sh)
- name: Verify Metasploit version
- name: Install Git CLI
run: |
msfconsole -v
apt-get update
apt-get install git curl -y
bash <(curl -fsSL https://raw.githubusercontent.com/gushmazuko/metasploit_in_termux/feature/github-actions/metasploit.sh)

0 comments on commit bcbfc2f

Please sign in to comment.