From 6b489c2a548e0a8019514856c28f172aecd87c79 Mon Sep 17 00:00:00 2001 From: Adrian Shum Date: Thu, 18 Sep 2025 13:42:36 +0800 Subject: [PATCH] build: docker cache for test workflow (#108) --- .github/workflows/test.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 730c8c3..3942133 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -20,8 +20,14 @@ jobs: uses: docker/setup-buildx-action@v3 - name: Build test image - run: | - docker build --target builder -t imagorvideo-test . + uses: docker/build-push-action@v5 + with: + context: . + target: builder + tags: imagorvideo-test + load: true + cache-from: type=gha + cache-to: type=gha,mode=max - name: Run tests in Docker run: |