cache mac acceptance image

Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
Alex Goodman 2021-03-23 15:03:25 -04:00
parent 3ef30f99be
commit 8854d83934
No known key found for this signature in database
GPG Key ID: 5CB45AE22BAB7EA7
2 changed files with 16 additions and 2 deletions

View File

@ -99,6 +99,13 @@ jobs:
- name: Run unit tests
run: make unit
# TODO: remove me
- uses: actions/upload-artifact@v2
if: failure()
with:
name: unit-test-cache
path: syft/file/test-fixtures/cache
- uses: actions/upload-artifact@v2
with:
name: unit-test-results
@ -207,7 +214,7 @@ jobs:
- uses: actions/upload-artifact@v2
with:
name: branchmark-test-results
name: benchmark-test-results
path: test/results/**/*
- name: Update PR benchmark results comment
@ -302,6 +309,13 @@ jobs:
name: artifacts
path: snapshot
- name: Restore docker image cache
id: go-cache
uses: actions/cache@v2.1.3
with:
path: /tmp/image.tar
key: ${{ runner.os }}-${{ hashFiles('test/acceptance/mac.sh') }}
- name: Run Acceptance Tests (Mac)
run: make acceptance-mac

View File

@ -33,7 +33,7 @@ trap cleanup EXIT
skopeo --version || brew install skopeo
# fetch test image
skopeo --override-os linux copy docker://docker.io/${TEST_IMAGE} docker-archive:${TEST_IMAGE_TAR}
[[ -f ${TEST_IMAGE_TAR} ]] || skopeo --override-os linux copy "docker://docker.io/${TEST_IMAGE}" "docker-archive:${TEST_IMAGE_TAR}"
ls -alh ${TEST_IMAGE_TAR}
# run syft