mirror of
https://github.com/anchore/syft.git
synced 2025-11-18 17:03:17 +01:00
chore: continue building snapshots for acceptance tests
Signed-off-by: Keith Zantow <kzantow@gmail.com>
This commit is contained in:
parent
2fc2588030
commit
1b5e76977e
62
.github/workflows/validations.yaml
vendored
62
.github/workflows/validations.yaml
vendored
@ -112,22 +112,49 @@ jobs:
|
|||||||
run: make cli
|
run: make cli
|
||||||
|
|
||||||
|
|
||||||
Acceptance-Linux:
|
|
||||||
# Note: changing this job name requires making the same update in the .github/workflows/release.yaml pipeline
|
Build-Snapshot-Artifacts:
|
||||||
name: "Acceptance tests (Linux)"
|
name: "Build snapshot artifacts"
|
||||||
# needs: [Build-Snapshot-Artifacts]
|
|
||||||
runs-on: ubuntu-20.04
|
runs-on: ubuntu-20.04
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4.1.0
|
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4.1.0
|
||||||
|
|
||||||
# - name: Download snapshot build
|
|
||||||
# uses: actions/cache/restore@704facf57e6136b1bc63b828d79edcd491f0ee84 #v3.3.2
|
|
||||||
# with:
|
|
||||||
# path: snapshot
|
|
||||||
# key: snapshot-build-${{ github.run_id }}
|
|
||||||
|
|
||||||
- name: Bootstrap environment
|
- name: Bootstrap environment
|
||||||
uses: ./.github/actions/bootstrap
|
uses: ./.github/actions/bootstrap
|
||||||
|
with:
|
||||||
|
# why have another build cache key? We don't want unit/integration/etc test build caches to replace
|
||||||
|
# the snapshot build cache, which includes builds for all OSs and architectures. As long as this key is
|
||||||
|
# unique from the build-cache-key-prefix in other CI jobs, we should be fine.
|
||||||
|
#
|
||||||
|
# note: ideally this value should match what is used in release (just to help with build times).
|
||||||
|
build-cache-key-prefix: "snapshot"
|
||||||
|
bootstrap-apt-packages: ""
|
||||||
|
|
||||||
|
- name: Build snapshot artifacts
|
||||||
|
run: make snapshot
|
||||||
|
|
||||||
|
# why not use actions/upload-artifact? It is very slow (3 minutes to upload ~600MB of data, vs 10 seconds with this approach).
|
||||||
|
# see https://github.com/actions/upload-artifact/issues/199 for more info
|
||||||
|
- name: Upload snapshot artifacts
|
||||||
|
uses: actions/cache/save@704facf57e6136b1bc63b828d79edcd491f0ee84 #v3.3.2
|
||||||
|
with:
|
||||||
|
path: snapshot
|
||||||
|
key: snapshot-build-${{ github.run_id }}
|
||||||
|
|
||||||
|
|
||||||
|
Acceptance-Linux:
|
||||||
|
# Note: changing this job name requires making the same update in the .github/workflows/release.yaml pipeline
|
||||||
|
name: "Acceptance tests (Linux)"
|
||||||
|
needs: [Build-Snapshot-Artifacts]
|
||||||
|
runs-on: ubuntu-20.04
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4.1.0
|
||||||
|
|
||||||
|
- name: Download snapshot build
|
||||||
|
uses: actions/cache/restore@704facf57e6136b1bc63b828d79edcd491f0ee84 #v3.3.2
|
||||||
|
with:
|
||||||
|
path: snapshot
|
||||||
|
key: snapshot-build-${{ github.run_id }}
|
||||||
|
|
||||||
- name: Run comparison tests (Linux)
|
- name: Run comparison tests (Linux)
|
||||||
run: make compare-linux
|
run: make compare-linux
|
||||||
@ -154,16 +181,16 @@ jobs:
|
|||||||
Acceptance-Mac:
|
Acceptance-Mac:
|
||||||
# Note: changing this job name requires making the same update in the .github/workflows/release.yaml pipeline
|
# Note: changing this job name requires making the same update in the .github/workflows/release.yaml pipeline
|
||||||
name: "Acceptance tests (Mac)"
|
name: "Acceptance tests (Mac)"
|
||||||
# needs: [Build-Snapshot-Artifacts]
|
needs: [Build-Snapshot-Artifacts]
|
||||||
runs-on: macos-latest
|
runs-on: macos-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4.1.0
|
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608 #v4.1.0
|
||||||
|
|
||||||
# - name: Download snapshot build
|
- name: Download snapshot build
|
||||||
# uses: actions/cache/restore@704facf57e6136b1bc63b828d79edcd491f0ee84 #v3.3.2
|
uses: actions/cache/restore@704facf57e6136b1bc63b828d79edcd491f0ee84 #v3.3.2
|
||||||
# with:
|
with:
|
||||||
# path: snapshot
|
path: snapshot
|
||||||
# key: snapshot-build-${{ github.run_id }}
|
key: snapshot-build-${{ github.run_id }}
|
||||||
|
|
||||||
- name: Restore docker image cache for compare testing
|
- name: Restore docker image cache for compare testing
|
||||||
id: mac-compare-testing-cache
|
id: mac-compare-testing-cache
|
||||||
@ -172,9 +199,6 @@ jobs:
|
|||||||
path: image.tar
|
path: image.tar
|
||||||
key: ${{ runner.os }}-${{ hashFiles('test/compare/mac.sh') }}
|
key: ${{ runner.os }}-${{ hashFiles('test/compare/mac.sh') }}
|
||||||
|
|
||||||
- name: Bootstrap environment
|
|
||||||
uses: ./.github/actions/bootstrap
|
|
||||||
|
|
||||||
- name: Run comparison tests (Mac)
|
- name: Run comparison tests (Mac)
|
||||||
run: make compare-mac
|
run: make compare-mac
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user