From 2d1e6ddbc932ffaf488fe2f1e02c5318f4613751 Mon Sep 17 00:00:00 2001 From: N/Ame <173015200+grqz@users.noreply.github.com> Date: Sun, 15 Sep 2024 18:27:02 +1200 Subject: [PATCH] dont use default path: interferes with HTTP test --- .github/workflows/test.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 6a20a94..0c34a3d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -42,10 +42,7 @@ jobs: - name: Download yt-dlp run: curl -L https://github.com/yt-dlp/yt-dlp-nightly-builds/releases/latest/download/yt-dlp -o yt-dlp && chmod +x ./yt-dlp - name: Install and build server dependencies - run: | - cd server/ && yarn install --frozen-lockfile && npx tsc - mkdir -p $HOME/bgutil-ytdlp-pot-provider/server/ - cp -aT ./ $HOME/bgutil-ytdlp-pot-provider/server/ + run: cd server/ && yarn install --frozen-lockfile && npx tsc - name: Install plugin run: | mkdir ~/yt-dlp-plugins && curl -L "https://github.com/coletdjnz/yt-dlp-get-pot/releases/download/v0.1.1/yt-dlp-get-pot.zip" -o ~/yt-dlp-plugins/yt-dlp-get-pot.zip @@ -53,7 +50,7 @@ jobs: - name: Test script method shell: bash run: | - script_response=$(./yt-dlp -vF --print-traffic BaW_jenozKc 2>&1) || echo "::error title=Failed to run yt-dlp when testing script::yt-dlp returned $? exit status" + script_response=$(./yt-dlp -vF --print-traffic BaW_jenozKc --extractor-args "youtube:getpot_bgutil_script=server/build/generate_once.js" 2>&1) || echo "::error title=Failed to run yt-dlp when testing script::yt-dlp returned $? exit status" echo "::group::Logs from yt-dlp" printf "%s\n" "$script_response" echo "::endgroup::"