Interview Prep/GitHub Actions/Caching, Artifacts, Builds & Scans

`Warning: No files were found with the provided path: coverage/. No artifacts will be uploaded.` but tests ran.

BeginnerTroubleshootingCaching, Artifacts, Builds & Scans
Answer

Likely causes → Coverage written to a different directory, working-directory used for tests but the upload path is relative to the workspace root, or the test step failed and coverage was not written.

Diagnose → Add ls -R before upload; check defaults.run.working-directory.

Fix → Use the correct path (services/api/coverage/), add if: ${{ !cancelled() }} to upload even after test failure.

Prevent → if-no-files-found: error.

All GitHub Actions questions Roadmap: GitHub Actions

More on Caching, Artifacts, Builds & Scans