Skip to content

Commit

Permalink
action: Use the repository dumping feature by default
Browse files Browse the repository at this point in the history
This uploads all test repository versions as a single GitHub artifact

Signed-off-by: Jussi Kukkonen <[email protected]>
  • Loading branch information
jku committed Aug 1, 2024
1 parent 66c5bf8 commit f260561
Showing 1 changed file with 14 additions and 2 deletions.
16 changes: 14 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,25 @@ runs:
shell: bash

- name: Run test suite
id: sigstore-conformance
id: tuf-conformance
env:
ENTRYPOINT: ${{ inputs.entrypoint }}
EXPECTED_FAILURES: ${{ inputs.expected-failures }}
TEST_LOCATION: ${{ github.action_path }}/tuf_conformance
run: |
# create a sanitized name for the artifact upload
echo "NAME=${ENTRYPOINT##*/}" >> "$GITHUB_OUTPUT"
# run test suite
pytest -v "$TEST_LOCATION" \
--entrypoint "$ENTRYPOINT" \
--expected-failures "$EXPECTED_FAILURES"
--expected-failures "$EXPECTED_FAILURES" \
--repository-dump-dir ./test-repositories \
shell: bash

- name: Upload repository dump
if: ${{ !cancelled() }}
uses: actions/upload-artifact@0b2256b8c012f0828dc542b3febcab082c67f72b # v4.3.4
with:
name: test repositories for '${{ steps.tuf-conformance.outputs.NAME }}'
path: test-repositories

0 comments on commit f260561

Please sign in to comment.