From 09b50f7afce0021be65cd3675f2651799579a090 Mon Sep 17 00:00:00 2001 From: pwnwriter Date: Fri, 3 Nov 2023 07:50:45 +0545 Subject: [PATCH] chore(tests): use long timeout // redirect msgs while installing deps --- .github/workflows/test_on_domains.yml | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test_on_domains.yml b/.github/workflows/test_on_domains.yml index 1cb042d..5523d14 100644 --- a/.github/workflows/test_on_domains.yml +++ b/.github/workflows/test_on_domains.yml @@ -1,4 +1,4 @@ -name: Domain Tests +name: Test over new domains on: push: @@ -15,12 +15,16 @@ jobs: - uses: actions/checkout@v3 - name: Install dependencies run: | - wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb - sudo dpkg -i google-chrome-stable_current_amd64.deb - sudo apt-get install -f -y + wget -q https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb > /dev/null + sudo dpkg -i google-chrome-stable_current_amd64.deb > /dev/null + sudo apt-get install -f -y > /dev/null + - name: install hxn + run: | + cargo build --release + mv -iv target/release/hxn /usr/local/bin/hxn - name: Run Test over domains run: | - curl -qfsSL "https://raw.githubusercontent.com/Azathothas/CertStream-Domains/main/Data/np_ccTLDs/certstream_domains_np_all_24h_httpx.txt" | awk '{print $1}' | grep -i 'http' | sort -u | cargo r --release -- -b "$(which google-chrome)" --stdin --timeout 300 + curl -sSL "https://raw.githubusercontent.com/Azathothas/CertStream-Domains/main/Data/np_ccTLDs/certstream_domains_np_all_24h_httpx.txt" | awk '{print $1}' | grep -i 'http' | sort -u | hxn -b "$(which google-chrome)" --stdin --timeout 1000 - name: Count files in hxnshots run: | num_files=$(ls -1q hxnshots | wc -l) @@ -29,4 +33,3 @@ jobs: run: | size=$(du -sh hxnshots | awk '{print $1}') echo "Size of the directory: $size" -