Skip to content

Commit 52bc596

Browse files
committed
Add integration tests
Signed-off-by: Facundo Tuesca <[email protected]>
1 parent 17a4b20 commit 52bc596

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/gha-tests.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Integration tests
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
9+
jobs:
10+
test-github-action:
11+
runs-on: ubuntu-latest
12+
permissions:
13+
id-token: write # to sign the provenance
14+
attestations: write # to persist the attestation files
15+
steps:
16+
- name: Create artifacts
17+
run: mkdir dist && echo "a" > dist/artifact1.txt && echo "b" > dist/artifact2.txt
18+
- name: Create provenances
19+
id: create-provenances
20+
uses: actions/attest-build-provenance@v1
21+
with:
22+
subject-path: 'dist/*'
23+
- name: Convert provenances
24+
uses: trailofbits/gh-action-adapt-sigstore-pypi@main
25+
with:
26+
bundles: ${{ steps.create-provenances.outputs.bundle-path }}
27+
output-dir: dist/
28+
- name: Check action result
29+
run: ls dist
30+

0 commit comments

Comments
 (0)