Files
hyperframes/.github/actions/opencv-test-cache/action.yml
T
Miguel Ángel e6cee094b1 fix(cli): tests read opencv.js from a CI cache, never a CDN mid-test (#7968)
* fix(cli): tests read opencv.js from a CI cache, never a CDN mid-test

* chore(ci): re-pin the cli test job after its opencv cache step

* chore(cli): one-line note on the opencv cache copy
2026-11-18 02:02:15 +00:00

16 lines
660 B
YAML

name: Cache opencv.js for the CLI tests
description: >-
Restore opencv.js and the face models into ~/.cache/hyperframes/opencv, where the CLI tests copy them from.
On a cache miss, fetch them once with opencv.ts's own pins, before any test runs.
runs:
using: composite
steps:
- id: cache
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
with:
path: ~/.cache/hyperframes/opencv
key: opencv-${{ runner.os }}-${{ hashFiles('packages/cli/src/measure/opencv.ts') }}
- if: steps.cache.outputs.cache-hit != 'true'
shell: bash
run: node --import tsx packages/cli/scripts/prepare-test-opencv.mjs