mirror of
https://github.com/anchore/syft.git
synced 2025-11-18 00:43:20 +01:00
cache mac acceptance image
Signed-off-by: Alex Goodman <alex.goodman@anchore.com>
This commit is contained in:
parent
3ef30f99be
commit
8854d83934
16
.github/workflows/validations.yaml
vendored
16
.github/workflows/validations.yaml
vendored
@ -99,6 +99,13 @@ jobs:
|
|||||||
- name: Run unit tests
|
- name: Run unit tests
|
||||||
run: make unit
|
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
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: unit-test-results
|
name: unit-test-results
|
||||||
@ -207,7 +214,7 @@ jobs:
|
|||||||
|
|
||||||
- uses: actions/upload-artifact@v2
|
- uses: actions/upload-artifact@v2
|
||||||
with:
|
with:
|
||||||
name: branchmark-test-results
|
name: benchmark-test-results
|
||||||
path: test/results/**/*
|
path: test/results/**/*
|
||||||
|
|
||||||
- name: Update PR benchmark results comment
|
- name: Update PR benchmark results comment
|
||||||
@ -302,6 +309,13 @@ jobs:
|
|||||||
name: artifacts
|
name: artifacts
|
||||||
path: snapshot
|
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)
|
- name: Run Acceptance Tests (Mac)
|
||||||
run: make acceptance-mac
|
run: make acceptance-mac
|
||||||
|
|
||||||
|
|||||||
@ -33,7 +33,7 @@ trap cleanup EXIT
|
|||||||
skopeo --version || brew install skopeo
|
skopeo --version || brew install skopeo
|
||||||
|
|
||||||
# fetch test image
|
# 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}
|
ls -alh ${TEST_IMAGE_TAR}
|
||||||
|
|
||||||
# run syft
|
# run syft
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user