From f260561de5e57c49a4f88b2c12534e40196b74fa Mon Sep 17 00:00:00 2001 From: Jussi Kukkonen Date: Wed, 31 Jul 2024 13:55:43 +0300 Subject: [PATCH] action: Use the repository dumping feature by default This uploads all test repository versions as a single GitHub artifact Signed-off-by: Jussi Kukkonen --- action.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index ebc01b1..85f2d2a 100644 --- a/action.yml +++ b/action.yml @@ -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 \ No newline at end of file