actions/upload-artifact. Previously, our workflow ran unit tests successfully but didn’t persist the generated XML report:
mocha-junit-reporter creates a test-results.xml file in your project root. For example:
actions/upload-artifact@v3:
The
path field accepts glob patterns. To archive multiple XML reports, use something like path: reports/**/*.xml.

By default, artifacts are retained for 90 days. You can configure retention or delete them when they’re no longer needed.