Skip to content

Commit

Permalink
github: cache OSBUILD_TEST_STORE accross runs
Browse files Browse the repository at this point in the history
  • Loading branch information
mvo5 committed Nov 4, 2023
1 parent 73dc9fe commit 325f2af
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 325f2af

Please sign in to comment.