From 325f2afe71e72edaf352035320030b421207cf0c Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Sat, 4 Nov 2023 17:37:46 +0100 Subject: [PATCH] github: cache OSBUILD_TEST_STORE accross runs --- .github/workflows/test.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9987f6f8d3..f011e5bd8c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -27,10 +27,21 @@ jobs: steps: - name: "Clone Repository" uses: actions/checkout@v3 + - name: Get OSBUILD_TEST_STORE + uses: actions/cache@v3 + with: + path: "${{ github.workspace }}/.osbuild-test-store" + key: not-needed-cache-should-work-everywhere - name: "Run" uses: osbuild/containers/src/actions/privdocker@552e30cf1b4ed19c6ddaa57f96c342b3dff4227b with: image: ghcr.io/osbuild/osbuild-ci:latest-202308241910 run: | + OSBUILD_TEST_STORE="${{ github.workspace }}/.osbuild-test-store" \ TEST_CATEGORY="${{ matrix.test }}" \ tox -e "${{ matrix.environment }}" + - name: Save OSBUILD_TEST_STORE + uses: actions/cache/save@v3 + with: + path: "${{ github.workspace }}/.osbuild-test-store" + key: not-needed-cache-should-work-everywhere