-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Thibault NORMAND <[email protected]>
- Loading branch information
1 parent
b6b7d31
commit 46bd78a
Showing
1 changed file
with
44 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
name: Integration Tests | ||
|
||
on: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
smoke-tests: | ||
permissions: | ||
contents: read | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
os: [ubuntu-latest, macos-latest, windows-latest] | ||
steps: | ||
- | ||
name: Checkout | ||
uses: actions/checkout@v2 | ||
- | ||
name: Create artifacts | ||
run: | | ||
mkdir artifacts | ||
echo "onion, tomato, jalapeno, cilantro, lime, salt" > artifacts/salsa.txt | ||
echo "audi, tesla, bmw" > artifacts/cars.txt | ||
- | ||
name: Generate some extra materials (this usually happens as part of the build process) | ||
run: | | ||
echo '[{"uri": "pkg:deb/debian/[email protected]?arch=amd64", "digest": {"sha256": "e1731ae217fcbc64d4c00d707dcead45c828c5f762bcf8cc56d87de511e096fa"}}]' > artifacts/extra-materials.json | ||
- | ||
name: Install cosign | ||
uses: sigstore/[email protected] | ||
with: | ||
cosign-release: 'v1.5.1' | ||
- | ||
name: Generate provenance from artifacts | ||
uses: phillips/[email protected] | ||
with: | ||
command: generate | ||
subcommand: files | ||
arguments: --artifact-path artifacts --extra-materials artifacts/extra-materials.json --output-path provenance.json | ||
env: | ||
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
|