From 32e6af5fb23fc32e18ace59d99e48021038af76e Mon Sep 17 00:00:00 2001 From: bashonly <88596187+bashonly@users.noreply.github.com> Date: Thu, 23 Oct 2025 16:18:04 -0500 Subject: [PATCH] Cache player JS test data on GitHub Actions (#19) --- .github/workflows/ci.yml | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 76fdd32..2442375 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -99,7 +99,6 @@ jobs: prepare: name: Prepare JS runtime tests - needs: [python_tests] runs-on: ubuntu-latest steps: - uses: actions/checkout@v5 @@ -125,6 +124,14 @@ jobs: path: | dist/SHA2-256SUMS compression-level: 0 + - name: Cache player JS files + uses: actions/cache@v4 + env: + SEGMENT_DOWNLOAD_TIMEOUT_MINS: 1 + with: + path: | + src/yt/solver/test/players + key: test-player-js-${{ hashFiles('src/yt/solver/test/tests.ts') }} - name: Download player JS files run: | deno run \ @@ -132,6 +139,7 @@ jobs: --allow-read=src/yt/solver/test/players/ \ --allow-write=src/yt/solver/test/players/ \ --allow-net=www.youtube.com \ + --allow-sys=uid \ src/yt/solver/test/download.ts - name: Upload player JS artifact uses: actions/upload-artifact@v4