Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 4 additions & 13 deletions .github/workflows/cli-e2e-recording-comment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,22 +104,13 @@ jobs:

console.log(`Total artifacts found: ${allArtifacts.length}`);

// Filter for CLI E2E test logs (they contain recordings)
// Filter for CLI E2E recording artifacts (simple pattern match)
// These are uploaded by the run-tests workflow with name: cli-e2e-recordings-{TestName}
const cliE2eArtifacts = allArtifacts.filter(a =>
a.name.startsWith('logs-') &&
a.name.includes('Tests-ubuntu-latest') &&
(a.name.includes('SmokeTests') ||
a.name.includes('EmptyAppHostTemplateTests') ||
a.name.includes('JsReactTemplateTests') ||
a.name.includes('PythonReactTemplateTests') ||
a.name.includes('DockerDeploymentTests') ||
a.name.includes('TypeScriptPolyglotTests') ||
a.name.includes('DoctorCommandTests') ||
a.name.includes('StartStopTests') ||
a.name.includes('PsCommandTests'))
a.name.startsWith('cli-e2e-recordings-')
);

console.log(`Found ${cliE2eArtifacts.length} CLI E2E artifacts`);
console.log(`Found ${cliE2eArtifacts.length} CLI E2E recording artifacts`);

// Create recordings directory
const recordingsDir = 'recordings';
Expand Down
19 changes: 19 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -516,6 +516,25 @@ jobs:
artifacts/bin/Aspire.Templates.Tests/Debug/net8.0/logs/**
artifacts/log/test-logs/**

- name: Copy CLI E2E recordings for upload
if: always()
shell: bash
run: |
mkdir -p cli-e2e-recordings
find testresults -name "*.cast" -exec cp {} cli-e2e-recordings/ \; 2>/dev/null || true
if [ -n "$(ls -A cli-e2e-recordings 2>/dev/null)" ]; then
echo "Found recordings:"
ls -la cli-e2e-recordings/
fi

- name: Upload CLI E2E recordings
if: always()
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4.6.1
with:
name: cli-e2e-recordings-${{ inputs.testShortName }}
path: cli-e2e-recordings/*.cast
if-no-files-found: ignore

- name: Generate test results summary
if: always()
shell: pwsh
Expand Down
Loading