Skip to content

CICD-097 · Bundle test logs for offline reading ​

Encyclopedia · Artifact handoffs · All snippets

Previous · CICD-096 · Next · CICD-098

1. Where it fits ​

  • Placement Bash run step following checkout, or equivalent lab terminal.
  • Prerequisites actions runner, trusted producers and files actually generated by tests.
  • Platforms local-linux, github-actions, gitea-actions.

2. Copy the snippet ​

bash
tar -czf test-logs.tgz -C reports .
tar -tzf test-logs.tgz

3. How it works ​

The command archives or inspects the selected files. Verify the relative paths and file set before using the archive downstream.

4. Verify the result ​

Inspect listing for expected paths and review secret handling before publishing.

Validation syntax-validated (Bash parse). Status definitions.