Skip to content

Commit

Permalink
feat(test): add smoke tests.
Browse files Browse the repository at this point in the history
Signed-off-by: Thibault NORMAND <[email protected]>
  • Loading branch information
Zenithar authored and marcofranssen committed Mar 1, 2022
1 parent b6b7d31 commit 46bd78a
Showing 1 changed file with 44 additions and 0 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/test.yaml
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 }}"


0 comments on commit 46bd78a

Please sign in to comment.