feat(downloads): add remote download workers

This commit is contained in:
saltbo
2026-06-03 02:21:50 -04:00
parent cf12806902
commit 53076d7873
53 changed files with 15539 additions and 14 deletions
+27
View File
@@ -11,6 +11,33 @@ env:
E2E_CLOUD_PRO_PASSWORD: ${{ secrets.E2E_CLOUD_PRO_PASSWORD }}
jobs:
downloader:
name: Downloader (Go)
runs-on: ubuntu-latest
if: github.repository == 'saltbo/zpan'
defaults:
run:
working-directory: downloader
steps:
- uses: actions/checkout@v6
- uses: actions/setup-go@v6
with:
go-version-file: downloader/go.mod
cache-dependency-path: downloader/go.sum
- name: Check formatting
run: |
files="$(gofmt -l .)"
if [ -n "$files" ]; then
echo "$files"
exit 1
fi
- run: go test ./...
- name: Install live downloader engines
run: sudo apt-get update && sudo apt-get install -y aria2 qbittorrent-nox
working-directory: .
- name: Verify live downloads
run: LIVE_DOWNLOAD_VERIFY=1 go test ./internal/engine -run 'TestLive(DownloadThreeSourceTypes|QBittorrentDownloadTorrentURL)' -count=1 -v
check:
name: Typecheck & Test
runs-on: ubuntu-latest